File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/material-experimental/mdc-chips Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3
3
@use ' @material/chips/chip-set' as mdc-chip-set ;
4
4
@use ' @material/theme/theme-color' as mdc-theme-color ;
5
5
@use ' @material/theme/color-palette' as mdc-color-palette ;
6
+ @use ' @material/typography' as mdc-typography ;
6
7
@use ' sass:color' ;
7
8
@use ' sass:map' ;
8
9
@use ' ../mdc-helpers/mdc-helpers' ;
80
81
theming .get-typography-config ($config-or-theme ));
81
82
@include mdc-chip-set .core-styles ($query : mdc-helpers .$mat-typography-styles-query );
82
83
@include mdc-helpers .mat-using-mdc-typography ($config ) {
83
- @include mdc-chip .without-ripple-styles ($query : mdc-helpers .$mat-typography-styles-query );
84
+ // Note that we don't go through MDC's typography mixin, because it assigns the styles to
85
+ // an inner element which makes it difficult for clients to customize. Instead we apply the
86
+ // same styles ourselves to the root.
87
+ .mat-mdc-chip {
88
+ @include mdc-typography .typography (body2, $query : mdc-helpers .$mat-typography-styles-query );
89
+ }
84
90
}
85
91
}
86
92
You can’t perform that action at this time.
0 commit comments