File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 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 {
191191 this . style [ 'css:color' ] = themer . getPrimaryColor ( ) as Color ;
192192 view . applyTextThemeWithScheme ( scheme ) ;
193193 } else if ( this . variant === 'flat' ) {
194+ this . style [ 'css:color' ] = themer . getOnPrimaryColor ( ) ;
194195 if ( colorScheme ) {
195196 MDCButtonColorThemer . applySemanticColorSchemeToButton ( colorScheme , view ) ;
196197 }
197198 } else if ( this . variant === 'outline' ) {
199+ this . style [ 'css:color' ] = themer . getOnPrimaryColor ( ) ;
198200 view . applyOutlinedThemeWithScheme ( scheme ) ;
199201 } else {
202+ this . style [ 'css:color' ] = themer . getOnPrimaryColor ( ) ;
200203 // contained
201204 view . applyContainedThemeWithScheme ( scheme ) ;
202205 // 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