FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Css text properties not applying on Button when no other text-element is used in page · Issue #1902 · NativeScript/NativeScript · GitHub

Css text properties not applying on Button when no other text-element is used in page #1902

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL