Skip to content

Commit

Permalink
[REF-2878] Map fontFamily to fontFamily and --default-font-family (#3380
Browse files Browse the repository at this point in the history
)

When setting the font_family prop for a component, also set the radix token
`--default-font-family` so that child radix components will inherit the font.
  • Loading branch information
masenf authored May 23, 2024
1 parent d96f051 commit 653f00b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reflex/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
"marginY": ("marginTop", "marginBottom"),
"bg": ("background",),
"bgColor": ("backgroundColor",),
# Radix components derive their font from this CSS var, not inherited from body or class.
"fontFamily": ("fontFamily", "--default-font-family"),
}


Expand Down

0 comments on commit 653f00b

Please sign in to comment.