Skip to content

Commit

Permalink
fix: incorrectly not inheriting values within details elements #494 (
Browse files Browse the repository at this point in the history
…#495)

fix: incorrectly not inheriting values within details elements #494
  • Loading branch information
mfranzke authored Jul 4, 2023
1 parent f06a21d commit f3b0166
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion source/_patterns/00-base/_init.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Box sizing
html {
box-sizing: border-box;
box-sizing: var(--db-box-sizing, border-box);
}

*,
Expand Down Expand Up @@ -66,3 +66,12 @@ nav,
color: $db-color-red-500;
}
}

// details/summary box-sizing / https://kittygiraudel.com/2021/08/23/shadow-roots-and-inheritance/
details {
& > *,
& > ::before,
& > ::after {
box-sizing: var(--db-box-sizing, border-box);
}
}

0 comments on commit f3b0166

Please sign in to comment.