Skip to content

Commit 33bcd2d

Browse files
committed
Add CSS variable and class styles
Signed-off-by: Christopher Ng <[email protected]>
1 parent 6102859 commit 33bcd2d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/css/global/variables.css

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
--vs-dropdown-option--active-bg: #136cfb;
5858
--vs-dropdown-option--active-color: #fff;
5959

60+
/* Keyboard Focus State */
61+
--vs-dropdown-option--kb-focus-box-shadow: inset 0px 0px 0px 2px #949494;
62+
6063
/* Deselect State */
6164
--vs-dropdown-option--deselect-bg: #fb5858;
6265
--vs-dropdown-option--deselect-color: #fff;

src/css/modules/dropdown-option.css

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
color: var(--vs-dropdown-option--active-color);
1515
}
1616

17+
.vs__dropdown-option--kb-focus {
18+
box-shadow: var(--vs-dropdown-option--kb-focus-box-shadow);
19+
}
20+
1721
.vs__dropdown-option--deselect {
1822
background: var(--vs-dropdown-option--deselect-bg);
1923
color: var(--vs-dropdown-option--deselect-color);

0 commit comments

Comments
 (0)