When trying to set color , font-size , font-weight and font-style on Button styles are not applied if no other text-based element is used (Label, TextField, ect.) in the current xml file.
All other css-properties are working.
Example:
in app.css (or main-page.css)
Button {
color:red;
font-style:italic;
font-size: 50;
font-weight: bold;
}
in main-page.xml
<!-- in this case Css works
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
<StackLayout>
<Label text="Tap the button" />
<Button text="TAP" tap="{{ onTap }}" />
</StackLayout>
</Page>-->
<!-- here Css doesn't work
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
<StackLayout>
<Button text="TAP" tap="{{ onTap }}" />
</StackLayout>
</Page>-->
related to #1891
Reactions are currently unavailable
When trying to set color , font-size , font-weight and font-style on Button styles are not applied if no other text-based element is used (Label, TextField, ect.) in the current xml file.
All other css-properties are working.
Example:
in app.css (or main-page.css)
Button { color:red; font-style:italic; font-size: 50; font-weight: bold; }in main-page.xml
<!-- in this case Css works <Page xmlns="http://schemas.nativescript.org/tns.xsd"> <StackLayout> <Label text="Tap the button" /> <Button text="TAP" tap="{{ onTap }}" /> </StackLayout> </Page>--> <!-- here Css doesn't work <Page xmlns="http://schemas.nativescript.org/tns.xsd"> <StackLayout> <Button text="TAP" tap="{{ onTap }}" /> </StackLayout> </Page>-->related to #1891