Skip to content

Commit

Permalink
Style Select native invalid state as well
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpens committed May 24, 2024
1 parent 9e0927a commit 8abaf13
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/css/src/components/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,9 @@
@include reset;
}

.ams-select:invalid,
.ams-select[aria-invalid="true"] {
box-shadow: var(--ams-select-invalid-box-shadow);

&:hover {
box-shadow: var(--ams-select-invalid-hover-box-shadow);
}
}

.ams-select:disabled {
Expand All @@ -55,6 +52,11 @@
}
}

.ams-select:invalid:hover,
.ams-select[aria-invalid="true"]:hover {
box-shadow: var(--ams-select-invalid-hover-box-shadow);
}

.ams-select__option:disabled {
color: var(--ams-select-option-disabled-color);
}

0 comments on commit 8abaf13

Please sign in to comment.