-
Notifications
You must be signed in to change notification settings - Fork 943
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
USWDS - Input mask: Fix hover state #5378
Conversation
Update: During discussion, we determined that the style issue does not warrant blocking progress on this PR. |
- This prevents input text from peeking behind usa-input-mask--content
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! Thanks for taking this on. I created issue #5396 to resolve the disabled input styling by default in high contrast mode. I'll have a fix up shortly!
- Default and disabled variants look great in standard views
- Input text is visible in hc mode
- Hover does not activate disabled state
- Color matches standard input colors
- Functionality vastly improved
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! I've tested both standard viewing mode and forced colors.
Standard mode
- Disabled styles on hover regression is gone.
- Both
aria-disabled
anddisabled
look good. - No visual regressions. Compared this preview to
develop
andrelease-3.4.1
.
Forced colors mode
- Disabled styles aren't showing on hover.
- Component visually looks good.
- Both
aria-disabled
anddisabled
look good.
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.
Good fix, thinking, and prioritization for this important bug
Summary
Fixed a bug in input mask that caused the hover state to show disabled styling. This change also improved the legibility of the component in forced colors mode.
Breaking change
This is not a breaking change.
Related issue
Closes #5376
Related pull requests
Changelog PR
Preview link
Preview link: Input mask
Problem statement
The input mask component mistakenly receives disabled styles on hover.
The input mask is not legible in forced colors mode. The
usa-input-mask--content
element hides the input text. Example:Solution
This solution fixes two separate items:
u-disabled
mixin appears to have been mistakenly added to the default component state.usa-input-mask--content
visible.Testing and review
In standard viewing mode:
disabled
andaria-disabled
states look as expectedIn forced colors mode:
disabled
andaria-disabled
states look as expected