More descriptive delete/move buttons + red delete (#4145)

This commit is contained in:
Marianne Hval 2019-10-29 13:13:30 +01:00 committed by Bram Kragten
parent f2812bc706
commit b41f4777d4
2 changed files with 7 additions and 3 deletions

View File

@ -76,7 +76,7 @@ export class HuiCardOptions extends LitElement {
"ui.panel.lovelace.editor.edit_card.move"
)}</paper-item
>
<paper-item @click="${this._deleteCard}">
<paper-item .class="delete-item" @click="${this._deleteCard}">
${this.hass!.localize(
"ui.panel.lovelace.editor.edit_card.delete"
)}</paper-item
@ -133,6 +133,10 @@ export class HuiCardOptions extends LitElement {
paper-item {
cursor: pointer;
}
paper-item.delete-item {
color: var(--google-red-500);
}
`;
}

View File

@ -1446,8 +1446,8 @@
"show_code_editor": "Show Code Editor",
"add": "Add Card",
"edit": "Edit",
"delete": "Delete",
"move": "Move",
"delete": "Delete Card",
"move": "Move to View",
"options": "More options"
},
"save_config": {