Skip to content

Fonts are not applied for primitive elements #9407

@sarbull

Description

@sarbull

Provide a general summary of the issue here

I just created a new project using webpack, following the tutorial on the main page and in order to make <Heading> and <Text> components have the proper font from the S2 Library i had to add a .css file in my project above the import '@react-spectrum/s2/page.css'; which contains the following contents.

Image

🤔 Expected Behavior?

The components should automatically get their fonts from the library.

😯 Current Behavior

Fallbacks to Times New Roman

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

Create new project from scratch, use the components

Version

1.0.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions