-
Notifications
You must be signed in to change notification settings - Fork 15
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
Make loading disabled buttons colorful #4666
Conversation
🦋 Changeset detectedLatest commit: c93192c The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 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 |
@toptal-anvil ping reviewers |
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.
Looks good to me, as I expect buttons that are loading not to be interactible, but I would also expect them not to change color at all.
I'm thinking if buttons that only have loading, should not be disabled also.
now buttons that have loading: true disabled: false
and buttons that have loading: true disabled: true
look the same but the prior have a hover, outline, pointer cursor.
I don't think it matters that much as users will probably not try to press them but I find it a bit weird :)
I agree, I was thinking about it as well. I expect that now engineers use both |
Description
After discussion with Milos it appeared that the buttons in loading state, even if they are disabled should look like normal buttons, instead of becoming grey. So, here is the change.
Let's make them colorful!
How to test
loading
anddisabled
at the same time.Screenshots
Development checks
picasso-tailwind-merge
requires major update (check itsREADME.md
)props
in component with documentationexamples
for componentBreaking change
PR commands
List of available commands:
@toptal-bot run package:alpha-release
- Release alpha version@toptal-anvil ping reviewers
- Ping for reviewsPR Review Guidelines
When to approve? ✅
You are OK with merging this PR and
nit:
to your comment. (ex.nit: I'd rename this variable from makeCircle to getCircle
)When to request changes? ❌
You are not OK with merging this PR because
When to comment (neither ✅ nor ❌)
You want your comments to be addressed before merging this PR in cases like:
How to handle the comments?