-
Notifications
You must be signed in to change notification settings - Fork 1.2k
remove-tag-button-transition #1337
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
👋 Thanks for opening your first pull request. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines. You can also join #polaris on the Shopify Partners Slack. |
Hey @johanstromqvist, would you mind providing a bit of rationale for this change, and pinging a couple reviewers? cc: @ry5n |
I’d want to understand the rationale as well. |
@johanstromqvist one more bump for context on this change |
Sorry about the delay guys – just got back from vacation today. Expect rationale within the next unknown amount of days, or let me know if it's urgent and blocking you. I'll also provide more rationale in future PRs. Edit: 🤷♂️ |
Sorry about the delay. The short story is that the touch target is behaving inconsistently and instead of fixing it I simply removed the behaviour. I asked around in the Polaris team but we couldn't find any rationale for the transition, and I couldn't see any myself. We could see tho that the component hadn't been updated in a long time. Why do I think transition is excessive Why do I suggest hover to be immediate The inconsistency |
- Updated open styleguide pr to create multiple pull requests to update `polaris-react` across multiple repos ([#1069](https://github.com/Shopify/polaris-react/pull/1069)) | ||
- Updated the pull request creation to retry when it fails ([#1069](https://github.com/Shopify/polaris-react/pull/1069)) | ||
- Exported overlay and layer data attributes for use in consumer components ([#1266](https://github.com/Shopify/polaris-react/pull/1266)) | ||
- Removed transition on tag button hover state [#1337](https://github.com/Shopify/polaris-react/pull/1337) |
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.
- Removed transition on tag button hover state [#1337](https://github.com/Shopify/polaris-react/pull/1337) | |
- Removed transition on tag button hover state ([#1337](https://github.com/Shopify/polaris-react/pull/1337)) |
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 support this change, the transition seems unnecessary.
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 the context @johanstromqvist!
3fa4f37
to
2dfc210
Compare
Co-authored-by: johanstromqvist <johan.stromqvist@shopify.com>
2dfc210
to
3beaa27
Compare
🎉 Thanks for your contribution to Polaris React! |
WHY are these changes introduced?
Tag button hover state should be immediate.
WHAT is this pull request doing?
Removes excessive hover state transition on tag button.
How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx
:🎩 checklist