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 33@use ' @material/chips/chip-set' as mdc-chip-set ;
44@use ' @material/theme/theme-color' as mdc-theme-color ;
55@use ' @material/theme/color-palette' as mdc-color-palette ;
6+ @use ' @material/typography' as mdc-typography ;
67@use ' sass:color' ;
78@use ' sass:map' ;
89@use ' ../mdc-helpers/mdc-helpers' ;
8081 theming .get-typography-config ($config-or-theme ));
8182 @include mdc-chip-set .core-styles ($query : mdc-helpers .$mat-typography-styles-query );
8283 @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+ }
8490 }
8591}
8692
You can’t perform that action at this time.
0 commit comments