Skip to content

Commit

Permalink
Add CSS variable and class styles
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Jan 27, 2023
1 parent 73346f0 commit 4f43cb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/css/global/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
--vs-dropdown-option--active-bg: #136cfb;
--vs-dropdown-option--active-color: #fff;

/* Keyboard Focus State */
--vs-dropdown-option--kb-focus-box-shadow: inset 0px 0px 0px 2px #949494;

/* Deselect State */
--vs-dropdown-option--deselect-bg: #fb5858;
--vs-dropdown-option--deselect-color: #fff;
Expand Down
4 changes: 4 additions & 0 deletions src/css/modules/dropdown-option.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
color: var(--vs-dropdown-option--active-color);
}

.vs__dropdown-option--kb-focus {
box-shadow: var(--vs-dropdown-option--kb-focus-box-shadow);
}

.vs__dropdown-option--deselect {
background: var(--vs-dropdown-option--deselect-bg);
color: var(--vs-dropdown-option--deselect-color);
Expand Down

0 comments on commit 4f43cb0

Please sign in to comment.