-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[DualThumb] Add an offset to push the minimum range value to the left #4172
Conversation
🟢 This pull request modifies 1 files and might impact 1 other files. Details:All files potentially affected (total: 1)🧩
|
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.
Not sure if I should add an entry to the changelog?
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.
Tophat is working as expected!
I think you want to add a changelog entry under bug fixes
3ebed21
to
0771eda
Compare
size-limit report
|
@LauraAubin cool thank you, I added it to unreleased.md |
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.
Code looks good—would love to see a test added for this!
0771eda
to
fdf1b7d
Compare
… to the left when minimum range value is different from 0
fdf1b7d
to
c19bde1
Compare
🎉 Thanks for your contribution to Polaris React! |
WHY are these changes introduced?
Fixes #4155
When using the Dual thumb range slider with a min value different from 0, there is an extra padding on the left. This prevents selecting a value when having a range [10, 50] for example:
WHAT is this pull request doing?
Substract the minimum range value position to the position.
How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx
:🎩 checklist
README.md
with documentation changes