Skip to content

Commit

Permalink
Add styles for focus:invalid form fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
frjo committed Aug 20, 2024
1 parent afe29b6 commit b0bb12a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/sass/_zen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ main {
&:not(:placeholder-shown):invalid {
background-color: var(--color-error-bg);
}

&:focus:invalid {
background-color: var(--color-warning-bg);
}
}

button {
Expand Down

0 comments on commit b0bb12a

Please sign in to comment.