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

Styling: Hover/Focus on TextInputs utilize dark colors #1886

Merged
merged 5 commits into from
May 7, 2024

Conversation

shindigira
Copy link
Contributor

@shindigira shindigira commented Jan 19, 2024

closes #1881

Changes

  • Added new dark hover/focus colors to variables.md
  • Added new dark hover/focus colors to text-inputs.md
  • Updated text-inputs.md with the new dark hover/focus color stories

How to Test

Screenshot(s)

Subtle dark colors -- only visible during hover (not focus)

Before After
Screenshot 2024-01-22 at 3 43 24 AM Screenshot 2024-01-22 at 4 15 28 AM

  Changes:
  - Added new dark hover/focus colors to variables.md
  - Added new dark hover/focus colors to text-inputs.md
  - Updated text-inputs.md with the new dark hover/focus color stories
Copy link

netlify bot commented Jan 19, 2024

Thanks for the improvements! Browse a preview of your changes using the link below.

Name Link
🔨 Latest commit 6f6bbbb
🔍 Latest deploy log https://app.netlify.com/sites/cfpb-design-system/deploys/663550a679e6750008d9414d
😎 Deploy Preview https://deploy-preview-1886--cfpb-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@natalia-fitzgerald natalia-fitzgerald left a comment

Choose a reason for hiding this comment

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

@shindigira
When I reviewed this with the design team we had only discussed changing the hover state to the darker color. Changing the focus state (or hover + focus) to the darker color was not the intent and would require further exploration/consideration. Perhaps as a first step we can change the hover to red (instead of blue) and put this additional change aside until I have time to discuss with the team next week?

Or we can pause on this and focus on the checkbox Error status states as a first step.

@natalia-fitzgerald
Copy link
Contributor

natalia-fitzgerald commented Jan 19, 2024

@shindigira

I'd like to proceed as follows:

  • Default: Red
  • Hover: Dark Red
  • Hover + Focus: Red
  • Focus: Red

The only visual change here should be changing Hover from Pacific to Dark Red. Focus+Hover and Focus should remain as Red.

@shindigira
Copy link
Contributor Author

@shindigira

I'd like to proceed as follows:

  • Default: Red
  • Hover: Dark Red
  • Hover + Focus: Red
  • Focus: Red

The only visual change here should be changing Hover from Pacific to Dark Red. Focus+Hover and Focus should remain as Red.

Changed where only Hover has the dark variant. See the screenshot and test via the preview link.

Copy link
Contributor

@natalia-fitzgerald natalia-fitzgerald left a comment

Choose a reason for hiding this comment

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

Looks great! Nice work @shindigira.

@anselmbradford
Copy link
Member

I'll merge this after #1973 goes in.

@anselmbradford anselmbradford merged commit dbb5f49 into main May 7, 2024
8 checks passed
@anselmbradford anselmbradford deleted the 1881-textinput-dark-hover-states branch May 7, 2024 13:14
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.

Text Input - Hover - Define state styling (Success/Warning/Error status)
3 participants