Skip to content

Commit c14441a

Browse files
authored
fix: details marker safari (#3179)
1 parent df037aa commit c14441a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.changeset/chilled-ravens-rush.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@digdir/designsystemet-css": patch
3+
---
4+
5+
**Details:** Hide native `<summary>` arrow in Safari

packages/css/src/details.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@
3535
--dsc-details-border-color: var(--ds-color-border-subtle);
3636
}
3737

38-
& :is(summary, u-summary) {
38+
/* Hide default marker in Safari */
39+
& > summary::-webkit-details-marker {
40+
display: none;
41+
}
42+
43+
& > :is(summary, u-summary) {
3944
color: var(--dsc-details-summary-color);
4045
align-items: center;
4146
background: var(--dsc-details-summary-background);

0 commit comments

Comments
 (0)