nstudio / nativescript-checkbox

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

Class color is not applied to label #124

Closed dosomder closed 4 years ago

dosomder commented 4 years ago

CSS color property is not applied to label. Text color can not be changed / set.

Example: https://play.nativescript.org/?template=play-vue&id=ggOUIi

Expected: Red text "hello checkbox"

Actual: Greyish text (#262626)

dosomder commented 4 years ago

Nvm, seems you have to use style directly (e.g. style="color: #ffffff; )

mm-spiio commented 4 years ago

This is still an issue for me (radio button in ios)

<StackLayout orientation="horizontal" verticalAlignment="center">
                    <CheckBox style="font-size: 20pt; color:#ffffff" horizontalAlignment="center" #elem [checked]="option.selected"
                        (checkedChange)="elem.checked !== option.selected && changeCheckedRadio(option)"
                        class="checkbox" boxType="circle" fillColor="#558f4b"></CheckBox>
                    <StackLayout verticalAlignment="center">
                        <Label class="filter-label" [text]="option.text" textWrap="true"
                            (tap)="changeCheckedRadio(option)"></Label>
                    </StackLayout>
                </StackLayout>

I even tried !important but it's not applied. Any ideas?

dosomder commented 4 years ago

Do you have a playground link? Then I can reopen the issue