Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separator renders with wrong width/height #3291

Open
noamcattan opened this issue Dec 16, 2024 · 0 comments
Open

Separator renders with wrong width/height #3291

noamcattan opened this issue Dec 16, 2024 · 0 comments

Comments

@noamcattan
Copy link

Bug report

Current Behavior

Even though I set height: 1px on my Separator component, the height of the result is sometimes 2px.

I'm seeing this happenning even in the demo page (with width instead of height). See the difference widths between the two:

image

Expected behavior

The thickness of the separator should be equal to the the width/height.

Your environment

Software Name(s) Version
Radix Package(s) @radix-ui/react-separator 1.1.1
React n/a 18.2.0
Browser Chrome 131.0.6778.85
Assistive tech
Node n/a 20.17.0
npm/yarn npm 10.8.2
Operating System Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant