Skip to content

Commit

Permalink
feat(select): add select is-dark class type like input component
Browse files Browse the repository at this point in the history
  • Loading branch information
guastallaigor committed May 18, 2019
1 parent 7c6abfd commit e285d14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scss/form/selects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
}
}

&.is-dark select {
color: $background-color;
background-color: $base-color;
}

&::after {
@include pixelize(3px, $dropdown, $colors);

Expand All @@ -44,7 +49,8 @@
$types:
"success" map-get($success-colors, "normal") map-get($success-colors, "hover"),
"warning" map-get($warning-colors, "normal") map-get($warning-colors, "hover"),
"error" map-get($error-colors, "normal") map-get($error-colors, "hover");
"error" map-get($error-colors, "normal") map-get($error-colors, "hover"),
"dark" map-get($default-colors, "normal") map-get($default-colors, "hover");

@each $type in $types {
&.is-#{nth($type, 1)} {
Expand Down
1 change: 1 addition & 0 deletions story/select.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ stories.add('select', () => {
'is-success': 'is-success',
'is-warning': 'is-warning',
'is-error': 'is-error',
'is-dark': 'is-dark',
}, '');

return `
Expand Down

0 comments on commit e285d14

Please sign in to comment.