Quick Bar should only capitalize letters in Command Palette (#7671)

This commit is contained in:
Donnie 2020-11-16 03:45:20 -08:00 committed by GitHub
parent 79c542b76a
commit 3b7a189708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,6 +207,7 @@ export class QuickBar extends LitElement {
.item=${item} .item=${item}
index=${ifDefined(index)} index=${ifDefined(index)}
graphic="icon" graphic="icon"
class=${this._commandMode ? "command-item" : ""}
> >
${item.iconPath ${item.iconPath
? html`<ha-svg-icon ? html`<ha-svg-icon
@ -526,6 +527,9 @@ export class QuickBar extends LitElement {
mwc-list-item { mwc-list-item {
width: 100%; width: 100%;
}
mwc-list-item.command-item {
text-transform: capitalize; text-transform: capitalize;
} }
`, `,