Skip to content

Commit 5fefbcf

Browse files
committed
💄 Add disabled and focus-visible style to the select element
1 parent 3d017d3 commit 5fefbcf

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

app/src/assets/scss/component/_select.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
@supports (appearance: base-select) {
2929
appearance: base-select;
3030

31+
&:disabled {
32+
opacity: .68;
33+
}
34+
3135
&::picker(select) {
3236
appearance: base-select;
3337
color: var(--b3-theme-on-background);
@@ -61,6 +65,11 @@
6165
&:hover {
6266
background-color: var(--b3-list-hover);
6367
}
68+
69+
&:focus-visible {
70+
background-color: var(--b3-list-hover);
71+
outline: none;
72+
}
6473
}
6574
}
6675
}

0 commit comments

Comments
 (0)