Skip to content

Commit

Permalink
Merge branch 'next' into fix/input-readonly-contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikbacker authored Oct 16, 2024
2 parents 235fde1 + f6eb237 commit 358bcca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twelve-onions-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@digdir/designsystemet-css": patch
---

Modal backdrop was invisible in some browser versions. See https://caniuse.com/mdn-css_selectors_backdrop_inherit_from_originating_element for affected versions.
1 change: 1 addition & 0 deletions apps/storybook/chromatic.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"onlyChanged": true,
"projectId": "Project:66fe736b9d639fe6801bf130",
"buildScriptName": "build",
"storybookBaseDir": "apps/storybook",
"storybookBuildDir": "dist",
"zip": true,
Expand Down
4 changes: 3 additions & 1 deletion packages/css/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@

&::backdrop {
animation: fade-in 300ms ease-in-out;
background: var(--dsc-modal-backdrop-background);
/* we include a fallback color because ::backdrop didn't inherit
custom properties in Chrome until version 122 (mid-2024) */
background: var(--dsc-modal-backdrop-background, rgb(0 0 0 / 0.5));
}

&[open] {
Expand Down

0 comments on commit 358bcca

Please sign in to comment.