Skip to content

[React Aria Component Examples] Icons are not styled properly. #5292

Closed
@sookmax

Description

@sookmax

Provide a general summary of the issue here

Hello, I was trying to copy & paste the code found here: Action Menu.

Everything works as expected except for the icon inside the button (RailIcon from @spectrum-icons/workflow/Rail package). While I was inspecting the styles applied to the svg element, I realized some CSS variables like --spectrum-alias-workflow-icon-size were not defined, which seems to be the root cause of the icon not being rendered properly.

Reproduction link

https://stackblitz.com/edit/vitejs-vite-egtquu?file=README.md

Screenshots

Screenshot 2023-10-24 at 9 38 40 PM

🤔 Expected Behavior?

Icons from @spectrum-icons/workflow to be rendered correctly.

😯 Current Behavior

Icons from @spectrum-icons/workflow are not displayed properly.

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

Visit here: https://stackblitz.com/edit/vitejs-vite-egtquu?file=README.md

Version

"react-aria-components": "^1.0.0-beta.2"

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS Sonoma 14.0

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions