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(TextInput): fixes hover, focus issues with visibility icon #7680

Merged
merged 2 commits into from
Jan 28, 2021

Conversation

tw15egan
Copy link
Member

@tw15egan tw15egan commented Jan 27, 2021

Closes #7678

The visibility icon was inheriting currentColor which was causing issues in dark themes. This increases specificity so that the proper colors are used across all themes.

While working on this, I also noticed issues with keyboard navigation, so this also adds in focus styles / cleans up the box model

Screen Shot 2021-01-27 at 2 23 47 PM

Changelog

New

  • Focus styles for toggle password icon button

Changed

  • Increased specificity for the password toggle icon classes so that the proper fill color is used

Testing / Reviewing

Ensure you can tab to password visibility icon, and see focus styles
Ensure the hover fill is correct across themes

@tw15egan tw15egan requested review from joshblack, a team, shinytoyrobots and johnbister and removed request for a team and shinytoyrobots January 27, 2021 22:21
@netlify
Copy link

netlify bot commented Jan 27, 2021

Deploy preview for carbon-elements ready!

Built with commit a7c09c7

https://deploy-preview-7680--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Jan 27, 2021

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit a7c09c7

https://deploy-preview-7680--carbon-components-react.netlify.app

Copy link
Contributor

@andreancardona andreancardona left a comment

Choose a reason for hiding this comment

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

yay! 🌮

Still needs visual review

Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

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

Looks good!

@kodiakhq kodiakhq bot merged commit 9be7d0f into carbon-design-system:master Jan 28, 2021
@tw15egan tw15egan deleted the password-input-fixes branch March 3, 2022 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PasswordInput visibility toggle hover uses the incorrect color for the dark themes
4 participants