Skip to content
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: improve button hover and focus colors #3451

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aldenquimby
Copy link

Description

Fixes #3450

When danger buttons are hovered, the text is now visible:
Image
Image
Image
Image
Image

The focus indicator also works now:
hover-danger

And the focus change applied to all solid (non-outlined) buttons. Focus was previously invisible and is now shown:
hover


Implementation note, gotchas, related work and Future TODOs (optional)

Pre-launch Checklist

  • The Documentation is updated accordingly, or this PR doesn't require it.
  • I updated/added relevant documentation.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

Merging:

  • Squash merge to dev
  • Merge commit to publish-alpha and main

Copy link

vercel bot commented Jan 30, 2025

@aldenquimby is attempting to deploy a commit to the 100mslive Team on Vercel.

A member of the Team first needs to authorize it.

@@ -70,7 +74,7 @@ const getButtonVariants = (
border: `1px solid ${active}`,
},
'&:not([disabled]):focus-visible': {
boxShadow: `0 0 0 3px ${base}`,
boxShadow: `0 0 0 3px $colors${hover}`,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. ${base} was rendering an invalid CSS var here. Add $colors fixed that
  2. ${base} is the background color, so it was blending in. using ${hover} instead is clearer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Red danger buttons should have visible text on hover
1 participant