Skip to content

Commit

Permalink
fix: case-insensitive HTML attribute match in CSS selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Oct 14, 2021
1 parent f8f0a08 commit ee758f9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion components/button/html.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@extend .utrecht-button--distanced;
}

.utrecht-html button[type="submit"] {
.utrecht-html button[type="submit" i] {
@extend .utrecht-button--submit;
}

Expand Down
2 changes: 1 addition & 1 deletion components/checkbox/html.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

@import "./bem";

.utrecht-html input[type="checkbox"] {
.utrecht-html input[type="checkbox" i] {
@extend .utrecht-checkbox;
}
4 changes: 2 additions & 2 deletions components/form-label/html.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
@extend .utrecht-form-label;
}

.utrecht-html input[type="checkbox"] ~ label {
.utrecht-html input[type="checkbox" i] ~ label {
@extend .utrecht-form-label--checkbox;
}

.utrecht-html input[type="radio"] ~ label {
.utrecht-html input[type="radio" i] ~ label {
@extend .utrecht-form-label--radio;
}
2 changes: 1 addition & 1 deletion components/radio-button/bem.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

.utrecht-radio-button {
margin-block-end: 0;
/* reset native margin for input[type="radio"] */
/* reset native margin for input[type="radio" i] */
margin-block-start: 0;
margin-inline-end: 0;
margin-inline-start: 0;
Expand Down
2 changes: 1 addition & 1 deletion components/radio-button/html.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

@import "./bem";

.utrecht-html input[type="radio"] {
.utrecht-html input[type="radio" i] {
@extend .utrecht-radio-button;
}
14 changes: 7 additions & 7 deletions components/textbox/html.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

.utrecht-html {
input:not([type]),
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"] {
input[type="email" i],
input[type="number" i],
input[type="password" i],
input[type="search" i],
input[type="tel" i],
input[type="text" i],
input[type="url" i] {
@extend .utrecht-textbox;
@extend .utrecht-textbox--html-input;
}
Expand Down

0 comments on commit ee758f9

Please sign in to comment.