Allow each component to have its own colors and default to the global set

This commit is contained in:
Aria Stewart
2020-08-21 11:40:07 -04:00
committed by Jeremy Thomas
parent 7a3efb04aa
commit da369e134c
12 changed files with 35 additions and 11 deletions

View File

@@ -1,3 +1,5 @@
$select-colors: $form-colors !default
.select
display: inline-block
max-width: 100%
@@ -39,7 +41,7 @@
&::after
border-color: $input-hover-color
// Colors
@each $name, $pair in $colors
@each $name, $pair in $select-colors
$color: nth($pair, 1)
&.is-#{$name}
&:not(:hover)::after