Skip to content

Commit

Permalink
Fix error message styling (#136)
Browse files Browse the repository at this point in the history
* Add screenreader style

* Add date error styling
  • Loading branch information
annekainicUSDS authored Jul 5, 2018
1 parent 84887dc commit 5765bf5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/css/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/css/styles.css.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/scss/modules/_m-form-elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ button.form-button-disabled {
margin-top: 0.5em;
}

.form-error-date {
margin-top: 0;
}

@include media($medium-large-screen) {
.form-select-medium {
max-width: 12rem;
Expand Down
7 changes: 7 additions & 0 deletions src/scss/modules/_m-schemaform.scss
Original file line number Diff line number Diff line change
Expand Up @@ -637,3 +637,10 @@ legend.schemaform-label.schemaform-file-label {
margin-top: 0;
margin-bottom: 1em;
}

// Screen Readers
.sr-only {
position: absolute;
left: -9999em;
float: left;
}

0 comments on commit 5765bf5

Please sign in to comment.