Skip to content

Commit

Permalink
feat: use slashed zeroes for password inputs when the font supports it
Browse files Browse the repository at this point in the history
should make it easier to distinguish O from 0
  • Loading branch information
Robbert committed Oct 14, 2021
1 parent ee758f9 commit ea93a38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/textbox/bem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@
opacity: 100%;
}

.utrecht-textbox--password {
font-variant-numeric: slashed-zero;
}

.utrecht-textbox--html-input {
&:disabled {
@extend .utrecht-textbox--disabled;
Expand Down
5 changes: 5 additions & 0 deletions components/textbox/html.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@
@extend .utrecht-textbox;
@extend .utrecht-textbox--html-input;
}

input[autocomplete="current-password" i],
input[autocomplete="new-password" i] {
@extend .utrecht-textbox--password;
}
}

0 comments on commit ea93a38

Please sign in to comment.