File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -191,12 +191,15 @@ export class Button extends ButtonBase {
191
191
this . style [ 'css:color' ] = themer . getPrimaryColor ( ) as Color ;
192
192
view . applyTextThemeWithScheme ( scheme ) ;
193
193
} else if ( this . variant === 'flat' ) {
194
+ this . style [ 'css:color' ] = themer . getOnPrimaryColor ( ) ;
194
195
if ( colorScheme ) {
195
196
MDCButtonColorThemer . applySemanticColorSchemeToButton ( colorScheme , view ) ;
196
197
}
197
198
} else if ( this . variant === 'outline' ) {
199
+ this . style [ 'css:color' ] = themer . getOnPrimaryColor ( ) ;
198
200
view . applyOutlinedThemeWithScheme ( scheme ) ;
199
201
} else {
202
+ this . style [ 'css:color' ] = themer . getOnPrimaryColor ( ) ;
200
203
// contained
201
204
view . applyContainedThemeWithScheme ( scheme ) ;
202
205
// we need to set the default through css or user would not be able to overload it through css...
You can’t perform that action at this time.
0 commit comments