Skip to content

Commit 7fa6b0c

Browse files
committed
fix(layout): floating layout has correct color in dark theme
1 parent 8b8efb2 commit 7fa6b0c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/layout/src/_mixins.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@
7575
&--floating {
7676
background-color: transparent;
7777
box-shadow: none;
78+
79+
// need to set it back to transparent so that it renders correctly in
80+
// dialogs/sheets
81+
@if $rmd-theme-dark-class !=
82+
'prefers-color-scheme' and
83+
$rmd-theme-dark-class
84+
{
85+
#{$rmd-theme-dark-class} & {
86+
background-color: transparent;
87+
}
88+
}
7889
}
7990

8091
&--header-offset {

0 commit comments

Comments
 (0)