Skip to content

Commit

Permalink
fix(material/expansion): inherit shape for focus indicator (#30352)
Browse files Browse the repository at this point in the history
Fixes that the focus indicator had a different shape from the header.

Fixes #30350.

(cherry picked from commit d52c329)
crisbeto committed Jan 20, 2025

Verified

This commit was signed with the committer’s verified signature.
csainty Chris Sainty
1 parent 5c44216 commit 09d7476
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/material/expansion/expansion-panel-header.scss
Original file line number Diff line number Diff line change
@@ -14,6 +14,11 @@
transition: height expansion-variables.$header-transition;
}

// Ensures that the focus indicator has the same shape as the header.
&::before {
border-radius: inherit;
}

@include token-utils.use-tokens(
tokens-mat-expansion.$prefix, tokens-mat-expansion.get-token-slots()) {
@include token-utils.create-token-slot(height, header-collapsed-state-height);

0 comments on commit 09d7476

Please sign in to comment.