Skip to content

Commit f2683b8

Browse files
committed
fix(button): ios fix for default buttons text color (OnPrimaryColor)
1 parent 7bbeed5 commit f2683b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/button/button.ios.ts

+3
Original file line numberDiff line numberDiff 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...

0 commit comments

Comments
 (0)