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

USWDS - Input: Remove top margin from error inputs. Resolves #4189 #4751

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

mahoneycm
Copy link
Contributor

Description

Resolves #4189

Removes defined top margin from usa-form-group--error so that it inherits usa-form-group top margin. This prevents the input from shifting vertically when the error state is initiated.

Additional information

Before:

error-margin.mov

After:

Screen.Recording.2022-05-31.at.4.44.39.PM.mov

Before you hit Submit, make sure you’ve done whichever of these applies to you:

  • Follow the 18F Front End Coding Style Guide and Accessibility Guide.
  • Run npm test and make sure the tests for the files you have changed have passed.
  • [] Run your code through HTML_CodeSniffer and make sure it’s error free.
  • Title your pull request using this format: [Website] - [UI component]: Brief statement describing what this pull request solves.

Copy link
Contributor

@mejiaj mejiaj 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, thanks Charlie.

Copy link
Contributor

@amyleadem amyleadem 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! And thanks for the videos!

@thisisdano thisisdano merged commit 9993104 into develop Jun 6, 2022
@thisisdano thisisdano mentioned this pull request Jun 17, 2022
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.

Input Groups: Form group margin is inconsistent in error state
4 participants