Skip to content

Commit ae15b45

Browse files
committed
fix: make dialog backdrop visible by removing :where() wrapper
The :where() pseudo-class gave the backdrop selector zero specificity, causing the browser's UA default to win. Also increase opacity from 0.5 to 0.8 for better contrast.
1 parent 558a3e9 commit ae15b45

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

specs/nimble-css.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,8 @@ nimble.css does **not** reduce image opacity in dark mode (simple.css does this
807807
max-width: min(90vw, 40rem);
808808
padding: var(--nc-spacing);
809809
}
810-
:where(dialog::backdrop) {
811-
background: rgb(0 0 0 / 0.5);
810+
dialog::backdrop {
811+
background: rgb(0 0 0 / 0.8);
812812
}
813813
```
814814

src/_dialog.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
padding: var(#{$prefix}spacing);
1818
}
1919

20-
:where(dialog::backdrop) {
21-
background: rgb(0 0 0 / 0.5);
20+
dialog::backdrop {
21+
background: rgb(0 0 0 / 0.8);
2222
}
2323

2424
}

0 commit comments

Comments
 (0)