Skip to content

Commit d75a09a

Browse files
committed
fix: actual better fix for ios text buttons
1 parent 02f8495 commit d75a09a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/button/button.ios.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ export class Button extends ButtonBase {
130130
if (this.variant === 'text') {
131131
// fixes a bug where N would set default UILabel system color
132132
// if no color in style which would break theming
133-
if (!this.style.color) {
134-
this.style.color = themer.getPrimaryColor() as Color;
135-
}
133+
this.style['css:color'] = themer.getPrimaryColor() as Color;
136134
view.applyTextThemeWithScheme(scheme);
137135
} else if (this.variant === 'flat') {
138136
if (colorScheme) {

0 commit comments

Comments
 (0)