nstudio / nativescript-checkbox

NativeScript plugin for checkbox UI component
Other
119 stars 56 forks source link

Can't change font-size through cssClass on css file #21

Closed request-eduardo closed 7 years ago

request-eduardo commented 7 years ago

Doing this failed...

.checkbox_label { font-size: 5; }

This also failed...

<CheckBox text="Remember me" checked="false" class="checkbox_label" textWrap="true" fontSize="5"></CheckBox>

The only way I have been able to change declaratively the font-size has been including an inline style property like this

<CheckBox text="Remember me" checked="false" class="checkbox_label" textWrap="true" style="font-size: 5;"></CheckBox>

Is this supposed to be the behavior? I have been able to work with color with no problems

bradmartin commented 7 years ago

Setting with a class will work in the next publish soon. Commit here with details https://github.com/bradmartin/nativescript-checkbox/commit/596da0e3b46f41c04f885d177b6f4229bb250f03

bradmartin commented 7 years ago

1.2.4 published

prince30 commented 6 years ago

I am using 3.0.3 ,but still having this issue , what to do ?

fthuin commented 6 years ago

@bradmartin Is this feature still available?