-
-
Notifications
You must be signed in to change notification settings - Fork 263
[scroll area] Fix RTL horizontal scrollbar on Safari #2776
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
Conversation
da0741a to
ab50551
Compare
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Bundle size report
|
commit: |
8c9f4c2 to
ab50551
Compare
Signed-off-by: atomiks <[email protected]>
141d15e to
dbc4de1
Compare
LukasTy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@LukasTy welp, the tests were failing with just I think for RTL we have to assume the margin is symmetric and avoid |
LukasTy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for fixing it. 👍
If we get reported problems with this approach, it can be adjusted. 👌


The
getOffset(...)value when calculatingmarginoffset on the scrollbar is reported differently in Safari compared to Chrome/Firefox. Switching to logical properties (as we also switched to use use logical functional CSS a while back) fixes the issuehttps://deploy-preview-2776--base-ui.netlify.app/experiments/scroll-area/scroll-area-inset