Skip to content

Commit

Permalink
[FEATURE] Add chevron icon for select
Browse files Browse the repository at this point in the history
  • Loading branch information
deoostfrees committed Jan 28, 2024
1 parent 8106c07 commit 2b17ac7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions css/_icons.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
:root {
--check-icon: url('./../icons/check.svg');
--chevron-down-icon: url('./../icons/chevron-down.svg');
--error-icon: url('./../icons/error.svg');
--minus-icon: url('./../icons/minus.svg');
}
3 changes: 3 additions & 0 deletions css/content/forms/_form-select.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ select {
-moz-appearance: none;
appearance: none;
background-color: var(--select-background-color);
background-image: url('./../../../icons/chevron-down.svg');
background-position: calc(100% - ((8 / 18) * 1rem)) center;
background-repeat: no-repeat;
border-radius: var(--select-border-radius);
border: calc((1 / 18) * 1rem) solid var(--select-border-color);
color: var(--select-color);
Expand Down
3 changes: 3 additions & 0 deletions icons/chevron-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2b17ac7

Please sign in to comment.