You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fontWeight & fontFamily styles not being applied when using breakpoints in custom components
CodeSandbox/Snack link
--
Steps to reproduce
When implementing custom components with breakpoint-specific styles in Gluestack UI, the fontWeight and fontFamily styles are not properly applied under breakpoint conditions. This inconsistency affects styling across various viewport sizes. Notably, other styles like fontSize and lineHeight work as expected and are correctly applied at different breakpoints.
Description
fontWeight & fontFamily styles not being applied when using breakpoints in custom components
CodeSandbox/Snack link
--
Steps to reproduce
When implementing custom components with breakpoint-specific styles in Gluestack UI, the
fontWeight
andfontFamily
styles are not properly applied under breakpoint conditions. This inconsistency affects styling across various viewport sizes. Notably, other styles likefontSize
andlineHeight
work as expected and are correctly applied at different breakpoints.Heading component code:
Heading.tsx
Theme Configuration:
theme.ts
Steps to Reproduce:
<Heading size="h1">Responsive Heading</Heading>
Expected Behavior
The styles under the
@md
breakpoint should be applied when the browser width meets the defined breakpoint.Actual Behavior
The styles defined under the
@md
breakpoint are not applied. Instead, only the base styles are reflected, regardless of the viewport size.Environment Details
Library Version:
React Version: "react-dom": "18.2.0",
Browser: Version 132.0.6834.84 (Official Build) (arm64)
gluestack-ui Version
1.1.18
Platform
Other Platform
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: