Skip to content

Commit

Permalink
Add outline to a labels (#22392)
Browse files Browse the repository at this point in the history
* Update ha-data-table-labels.ts

* Update ha-labels-picker.ts

* Update ha-config-labels.ts

* Update ha-labels-picker.ts
  • Loading branch information
ildar170975 authored Oct 28, 2024
1 parent df06496 commit 432cf4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/data-table/ha-data-table-labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class HaDataTableLabels extends LitElement {
ha-label {
--ha-label-background-color: var(--color, var(--grey-color));
--ha-label-background-opacity: 0.5;
outline: 1px solid var(--outline-color);
}
ha-button-menu {
border-radius: 10px;
Expand Down
1 change: 1 addition & 0 deletions src/components/ha-labels-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export class HaLabelsPicker extends SubscribeMixin(LitElement) {
ha-input-chip {
--md-input-chip-selected-container-color: var(--color, var(--grey-color));
--ha-input-chip-selected-container-opacity: 0.5;
--md-input-chip-selected-outline-width: 1px;
}
`;
}
Expand Down
1 change: 1 addition & 0 deletions src/panels/config/labels/ha-config-labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class HaConfigLabels extends LitElement {
style="
background-color: ${computeCssColor(label.color)};
border-radius: 10px;
outline: 1px solid var(--outline-color);
width: 20px;
height: 20px;"
></div>`
Expand Down

0 comments on commit 432cf4a

Please sign in to comment.