Skip to content

Commit d45ded8

Browse files
committed
fix(chips): remove visible overflow for labels
1 parent 8e9fc04 commit d45ded8

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/material/chips/chip.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -547,15 +547,6 @@ $fallbacks: m3-chip.get-tokens();
547547
.mat-mdc-standard-chip {
548548
-webkit-tap-highlight-color: transparent;
549549

550-
// MDC sets `overflow: hidden` on these elements in order to truncate the text. This is
551-
// unnecessary since our chips don't truncate their text and it makes it difficult to style
552-
// the strong focus indicators so we need to override it.
553-
.mdc-evolution-chip__cell--primary,
554-
.mdc-evolution-chip__action--primary,
555-
.mat-mdc-chip-action-label {
556-
overflow: visible;
557-
}
558-
559550
// MDC sizes and positions this element using `width`, `height` and `padding`.
560551
// This usually works, but it's common for apps to add `box-sizing: border-box`
561552
// to all elements on the page which can cause the graphic to be clipped.

src/material/core/focus-indicators/_private.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ $default-border-radius: 4px;
8686
$config: map.merge($default-config, $config);
8787

8888
@include _customize-focus-indicators($config);
89+
90+
// MDC sets `overflow: hidden` on these elements in order to truncate the text. This conflicts
91+
// with how we structure and style the strong focus indicators so we need to override it.
92+
.mdc-evolution-chip__cell--primary,
93+
.mdc-evolution-chip__action--primary,
94+
.mat-mdc-chip-action-label {
95+
overflow: visible;
96+
}
8997
}
9098

9199
@mixin strong-focus-indicators-color($theme-or-color) {

0 commit comments

Comments
 (0)