Skip to content

Commit 7e62532

Browse files
Drop “display: none” from details element contents styling (#2624)
Fixes #2592
1 parent 1fb377c commit 7e62532

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.changeset/slow-rabbits-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
drop “display: none” from details element contents styling

src/base/base.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,6 @@ details {
9696
summary {
9797
cursor: pointer;
9898
}
99-
100-
&:not([open]) {
101-
// Set details content hidden by default for browsers that don't do this
102-
> *:not(summary) {
103-
display: none;
104-
}
105-
}
10699
}
107100

108101
// global focus styles

0 commit comments

Comments
 (0)