File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -566,15 +566,6 @@ $fallbacks: m3-chip.get-tokens();
566566.mat-mdc-standard-chip {
567567 -webkit-tap-highlight-color : transparent ;
568568
569- // MDC sets `overflow: hidden` on these elements in order to truncate the text. This is
570- // unnecessary since our chips don't truncate their text and it makes it difficult to style
571- // the strong focus indicators so we need to override it.
572- .mdc-evolution-chip__cell--primary ,
573- .mdc-evolution-chip__action--primary ,
574- .mat-mdc-chip-action-label {
575- overflow : visible ;
576- }
577-
578569 // MDC sizes and positions this element using `width`, `height` and `padding`.
579570 // This usually works, but it's common for apps to add `box-sizing: border-box`
580571 // to all elements on the page which can cause the graphic to be clipped.
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ $default-border-radius: 4px;
8686 $config : map .merge ($default-config , $config );
8787
8888 @include _customize-focus-indicators ($config );
89+
90+ @include _chip-label-overflow-visible ();
8991}
9092
9193@mixin strong-focus-indicators-color ($theme-or-color ) {
@@ -108,3 +110,15 @@ $default-border-radius: 4px;
108110 }
109111 }
110112}
113+
114+ @mixin _chip-label-overflow-visible {
115+ .mat-mdc-standard-chip {
116+ // MDC sets `overflow: hidden` on these elements in order to truncate the text. This conflicts
117+ // with how we structure and style the strong focus indicators so we need to override it.
118+ .mdc-evolution-chip__cell--primary ,
119+ .mdc-evolution-chip__action--primary ,
120+ .mat-mdc-chip-action-label {
121+ overflow : visible ;
122+ }
123+ }
124+ }
You can’t perform that action at this time.
0 commit comments