diff --git a/.changeset/fifty-hornets-hang.md b/.changeset/fifty-hornets-hang.md new file mode 100644 index 0000000000..368ba7a03b --- /dev/null +++ b/.changeset/fifty-hornets-hang.md @@ -0,0 +1,5 @@ +--- +"@digdir/designsystemet-css": patch +--- + +CSS: Move default background-color to `` element diff --git a/apps/storybook/story-utils/customStylesDecorator.tsx b/apps/storybook/story-utils/customStylesDecorator.tsx index fb9f9fdda3..64b9479835 100644 --- a/apps/storybook/story-utils/customStylesDecorator.tsx +++ b/apps/storybook/story-utils/customStylesDecorator.tsx @@ -41,6 +41,7 @@ export const customStylesDecorator: Decorator = (Story, ctx) => {
(not :root) to align with best practice */ +body, +[data-ds-color-mode] { color: var(--ds-color-neutral-text-default); background-color: var(--ds-color-neutral-background-default); }