Skip to content

Commit 2118d83

Browse files
committed
style: export .vs__dropdown-option--selected
1 parent 242c814 commit 2118d83

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

dev/index.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
/* vs__dropdown-toggle */
1010
--vs-height: 36px;
1111
--vs-bg-color: #fff;
12-
13-
/* state */
14-
--vs-state-no-drop-bg: #fff;
12+
--vs-state-no-drop-bg: red;
1513
--vs-state-disabled-bg: rgb(248, 248, 248);
1614

1715
/* .vs__dropdown-menu */
@@ -20,4 +18,5 @@
2018

2119
/* dropdown option */
2220
--vs-dropdown-option--active-bg: black;
21+
--vs-dropdown-option--selected-bg: gray;
2322
}

src/css/global/variables.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
/* Option */
6969
--vs-dropdown-option--active-bg: #5897fb;
7070
--vs-dropdown-option--active-color: #fff;
71+
--vs-dropdown-option--selected-bg: #5897fb;
72+
--vs-dropdown-option--selected-color: #fff;
7173

7274
/* Deselect State */
7375
--vs-dropdown-option--deselect-bg: #fb5858;

src/css/modules/dropdown-menu.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@
4949
color: var(--vs-dropdown-option--active-color);
5050
}
5151

52+
/* should be after .vs__dropdown-option--highlight to cover */
53+
.vs__dropdown-option--selected {
54+
background: var(--vs-dropdown-option--selected-bg);
55+
color: var(--vs-dropdown-option--selected-color);
56+
}
57+
5258
.vs__dropdown-option--deselect {
5359
background: var(--vs-dropdown-option--deselect-bg);
5460
color: var(--vs-dropdown-option--deselect-color);

0 commit comments

Comments
 (0)