File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -547,15 +547,6 @@ $fallbacks: m3-chip.get-tokens();
547
547
.mat-mdc-standard-chip {
548
548
-webkit-tap-highlight-color : transparent ;
549
549
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
-
559
550
// MDC sizes and positions this element using `width`, `height` and `padding`.
560
551
// This usually works, but it's common for apps to add `box-sizing: border-box`
561
552
// 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;
86
86
$config : map .merge ($default-config , $config );
87
87
88
88
@include _customize-focus-indicators ($config );
89
+
90
+ @include _chip-label-overflow-visible ();
89
91
}
90
92
91
93
@mixin strong-focus-indicators-color ($theme-or-color ) {
@@ -108,3 +110,13 @@ $default-border-radius: 4px;
108
110
}
109
111
}
110
112
}
113
+
114
+ @mixin _chip-label-overflow-visible {
115
+ // MDC sets `overflow: hidden` on these elements in order to truncate the text. This conflicts
116
+ // with how we structure and style the strong focus indicators so we need to override it.
117
+ .mdc-evolution-chip__cell--primary ,
118
+ .mdc-evolution-chip__action--primary ,
119
+ .mat-mdc-chip-action-label {
120
+ overflow : visible ;
121
+ }
122
+ }
You can’t perform that action at this time.
0 commit comments