Skip to content

Commit f13e39c

Browse files
Jeffrey Lauwersclaude
andcommitted
fix(Details): focus state consistent met Link component
Vervangt de incorrecte focus stijl (alleen outline) door de volledige focus state die overeenkomt met het Link component: background-color, color, text-decoration, dashed outline, inverse box-shadow en box-decoration-break. Verwijdert ook de niet-bestaande --dsn-focus-border-radius token. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3d41d1a commit f13e39c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

packages/components-html/src/details/details.css

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,19 @@
7979
}
8080

8181
/* ===========================
82-
Summary focus state
82+
Summary focus state — consistent met Link component
8383
=========================== */
8484
.dsn-details__summary:focus-visible {
85-
outline: var(--dsn-focus-outline-width) solid var(--dsn-focus-outline-color);
85+
background-color: var(--dsn-focus-background-color);
86+
color: var(--dsn-focus-color);
87+
text-decoration: none;
88+
outline: var(--dsn-focus-outline-width) var(--dsn-focus-outline-style)
89+
var(--dsn-focus-outline-color);
8690
outline-offset: var(--dsn-focus-outline-offset);
87-
border-radius: var(--dsn-focus-border-radius);
91+
box-shadow: 0 0 0
92+
calc(var(--dsn-focus-outline-offset) + var(--dsn-focus-outline-width))
93+
var(--dsn-focus-inverse-outline-color);
94+
box-decoration-break: clone;
8895
}
8996

9097
/* ===========================

0 commit comments

Comments
 (0)