Skip to content

Commit

Permalink
Set input and button background color to white for toolbar (#20369)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Apr 3, 2024
1 parent bfdc9a3 commit 578d3c4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/chips/ha-assist-chip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export class HaAssistChip extends MdAssistChip {
margin-inline-start: var(--_icon-label-space);
}
::before {
background: var(--ha-assist-chip-container-color);
opacity: var(--ha-assist-chip-container-opacity);
background: var(--ha-assist-chip-container-color, transparent);
opacity: var(--ha-assist-chip-container-opacity, 1);
}
:where(.active)::before {
background: var(--ha-assist-chip-active-container-color);
Expand Down
4 changes: 4 additions & 0 deletions src/components/ha-outlined-text-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export class HaOutlinedTextField extends MdOutlinedTextField {
--md-outlined-field-focus-outline-width: 1px;
--mdc-icon-size: var(--md-input-chip-icon-size, 18px);
}
md-outlined-field {
background: var(--ha-outlined-text-field-container-color, transparent);
opacity: var(--ha-outlined-text-field-container-opacity, 1);
}
.input {
font-family: Roboto, sans-serif;
}
Expand Down
1 change: 1 addition & 0 deletions src/components/search-input-outlined.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class SearchInputOutlined extends LitElement {
ha-outlined-text-field {
display: block;
width: 100%;
--ha-outlined-text-field-container-color: var(--card-background-color);
}
ha-svg-icon,
ha-icon-button {
Expand Down
3 changes: 2 additions & 1 deletion src/layouts/hass-tabs-subpage-data-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ export class HaTabsSubpageDataTable extends LitElement {
padding: 8px 12px;
box-sizing: border-box;
font-size: 14px;
--ha-assist-chip-container-color: var(--primary-background-color);
--ha-assist-chip-container-color: var(--card-background-color);
}
.selection-controls {
Expand All @@ -770,6 +770,7 @@ export class HaTabsSubpageDataTable extends LitElement {
ha-assist-chip {
--ha-assist-chip-container-shape: 10px;
--ha-assist-chip-container-color: var(--card-background-color);
}
.select-mode-chip {
Expand Down

0 comments on commit 578d3c4

Please sign in to comment.