-
Notifications
You must be signed in to change notification settings - Fork 172
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
fix: added cursor pointer for checkbox and pre-filled list #1793
Conversation
🦋 Changeset detectedLatest commit: 86b4d50 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
thanks for moving the PR 🙌
@@ -96,6 +98,7 @@ const CheckboxRoot = styled(Checkbox.Root)` | |||
height: 100%; | |||
min-width: 44px; | |||
min-height: 44px; | |||
pointer-events: none; |
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.
We can't do that because it's not just a visual change about what the cursor looks like, it makes the area not clickable. And as indicated in the comment above we do want to increase the touch target to make it easier to click, especially on mobile.
So I would recommend changing the approach and removing cursor: pointer
from the root, and instead only applying it to the icon. Then you wouldn't need to change this pseudo element
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.
@remidej , I tried applying to the icon, but it doesn’t show in the corners of the checkbox. To resolve this, I added it to the Checkbox Indicator, which ensures that it now encompasses the entire area.
Please let me know if you have any additional thoughts or suggestions!
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.
I checked with @lucasboilly and he also wants cursor pointer on the select's options, could you add that too?
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.
@remidej , I have implemented the changes.
Sorry I meant to ping @lucasboilly for a final check |
Hey @Sam-Phillemon9493, it looks great! Thanks for your contribution! |
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.
I forgot this just needs a changeset (something we use for auto geenrated releases and changelogs), could you add one?
yarn release:add
and mark it as a patch
Hi @remidej , I've added a changeset. Please let me know if anything else is needed. |
What does it do?
Fixed the Media Library's missing cursor pointers issue on the filters
Why is it needed?
To fix issue #1791: Media Library missing cursor pointers on the filters
How to test it?
Related issue(s)/PR(s)
#1791