Skip to content

Commit

Permalink
fix(@clayui/css): Forms c-unset/clay-unset shouldn't output anything …
Browse files Browse the repository at this point in the history
…for $form-control-select-palette
  • Loading branch information
pat270 committed May 11, 2023
1 parent a796dc4 commit dc601b0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions packages/clay-css/src/scss/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,16 @@ select.form-control[multiple] {
// Form Control Select Variants

@each $key, $value in $form-control-select-palette {
$selector: if(
starts-with($key, '.') or starts-with($key, '#'),
$key,
str-insert($key, '.', 1)
);

#{$selector} {
@include clay-select-variant($value);
@if not clay-is-map-unset($value) {
$selector: if(
starts-with($key, '.') or starts-with($key, '#'),
$key,
str-insert($key, '.', 1)
);

#{$selector} {
@include clay-select-variant($value);
}
}
}

Expand Down

0 comments on commit dc601b0

Please sign in to comment.