Skip to content

Commit

Permalink
fix: move the pseudo-class invalid, disabled to html
Browse files Browse the repository at this point in the history
  • Loading branch information
AliKdhim87 authored and Robbert committed Aug 15, 2022
1 parent 6879f46 commit de5955c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
10 changes: 0 additions & 10 deletions components/select/css/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,5 @@
}
}

&:invalid,
&[aria-invalid="true"] {
@include utrecht-select--invalid;
}

&:required,
&[aria-required="true"] {
@include utrecht-select--required;
}

/* <select> does not support :read-only */
}
8 changes: 8 additions & 0 deletions components/select/html/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@
select {
@include utrecht-select;
@include utrecht-select--html-select;

&[aria-invalid="true"] {
@include utrecht-select--invalid;
}

&[aria-required="true"] {
@include utrecht-select--required;
}
}

0 comments on commit de5955c

Please sign in to comment.