From 887edd81a1b5664a892aaf8f00f2c9833c789c0e Mon Sep 17 00:00:00 2001 From: sideshowbarker Date: Thu, 9 May 2024 20:41:51 +0900 Subject: [PATCH] =?UTF-8?q?Drop=20=E2=80=9Cdisplay:=20none=E2=80=9D=20from?= =?UTF-8?q?=20details=20element=20contents=20styling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #2592 --- .changeset/slow-rabbits-hunt.md | 5 +++++ src/base/base.scss | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 .changeset/slow-rabbits-hunt.md diff --git a/.changeset/slow-rabbits-hunt.md b/.changeset/slow-rabbits-hunt.md new file mode 100644 index 0000000000..6efb904772 --- /dev/null +++ b/.changeset/slow-rabbits-hunt.md @@ -0,0 +1,5 @@ +--- +"@primer/css": patch +--- + +drop “display: none” from details element contents styling diff --git a/src/base/base.scss b/src/base/base.scss index 5d123ef253..7fde534cdd 100644 --- a/src/base/base.scss +++ b/src/base/base.scss @@ -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