-
Notifications
You must be signed in to change notification settings - Fork 16
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
Update Text Input styling to adhere to design specification #325
Conversation
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.
LGTM. Do we want to apply the same to the dropdowns?
Hm, yeah, these styles are applied in USWDS via the |
Got it. If it's a light lift to update across the board, I think it'd be good to have spacing consistency between any label and input field. |
Actually, I take that back. Apparently in Sass, if you define a placeholder which already exists, it doesn't necessarily "override" what existed previously, but it does output an additional set of styles which would effectively take precedence over the initial definition, which should give us the effect we want. Example: https://www.sassmeister.com/gist/d12223c9afc58b44c411146e54053df4 |
I'm going to go ahead and merge this since I want to start implementing "Big" inputs, but let me know if you spot any issues @nickttng and I'll be happy to follow-up on them. |
Thank you, Andrew. I'll keep an eye out for the "Big" inputs. |
In implementing LG-8066, I noticed that text inputs and hints were not spaced correctly per the Figma Design System reference. The changes here eliminate all margins around the hint, and reduces the top margin of text fields from 0.5rem to 0.25rem.
Live preview: https://federalist-2f194a10-945e-4413-be01-46ca6dae5358.sites.pages.cloud.gov/preview/18f/identity-style-guide/aduth-hint-spec/components/form-fields/