-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When a fontFamily is specified inside a style class (className) definition in theme.yaml, it is not applied to Text widgets at runtime. Other properties in the same class (like fontSize, fontWeight) also appear unaffected when fontFamily is present.
Steps to reproduce:
Define a style class in theme.yaml:
Common:
Styles:
.myHeaderStyle:
textStyle:
fontSize: 24
fontWeight: w900
fontFamily: Metric_BlackApply it to a Text widget:
- Text:
text: Hello
className: myHeaderStyleThe text renders with the default font — fontFamily, fontSize, and fontWeight from the className are not applied.
Expected behavior: The Text widget should render with Metric_Black font at size 24 with weight w900.
Workaround: Apply textStyle properties inline on the widget's styles instead of via className:
- Text:
text: Hello
styles:
textStyle:
fontSize: 24
fontWeight: w900
fontFamily: Metric_BlackReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working