Skip to content

Commit

Permalink
Drop “display: none” from details element contents styling
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed May 9, 2024
1 parent b928b38 commit 887edd8
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 887edd8

Please sign in to comment.