Skip to content

Commit

Permalink
Drop “display: none” from details element contents styling (#2624)
Browse files Browse the repository at this point in the history
Fixes #2592
  • Loading branch information
sideshowbarker authored Jul 9, 2024
1 parent 1fb377c commit 7e62532
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-rabbits-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

drop “display: none” from details element contents styling
7 changes: 0 additions & 7 deletions src/base/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ details {
summary {
cursor: pointer;
}

&:not([open]) {
// Set details content hidden by default for browsers that don't do this
> *:not(summary) {
display: none;
}
}
}

// global focus styles
Expand Down

0 comments on commit 7e62532

Please sign in to comment.