Skip to content

Commit

Permalink
Add theme support for dialog surface background (#20653)
Browse files Browse the repository at this point in the history
* Add theme support for dialog surface background

* Change from review

* Change from review

Co-authored-by: Bram Kragten <[email protected]>

* Run prettier

---------

Co-authored-by: Bram Kragten <[email protected]>
  • Loading branch information
Nezz and bramkragten authored Apr 30, 2024
1 parent 7120ad9 commit af9417f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/ha-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ export class HaDialog extends DialogBase {
border-radius: var(--ha-dialog-border-radius, 28px);
-webkit-backdrop-filter: var(--ha-dialog-surface-backdrop-filter, none);
backdrop-filter: var(--ha-dialog-surface-backdrop-filter, none);
background: var(
--ha-dialog-surface-background,
var(--mdc-theme-surface, #fff)
);
}
:host([flexContent]) .mdc-dialog .mdc-dialog__content {
display: flex;
Expand Down

0 comments on commit af9417f

Please sign in to comment.