Skip to content

Commit

Permalink
feat: add select-arrow-color var (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek authored Apr 9, 2024
1 parent eb5fe21 commit d7009b0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assets/scss/components/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $select-height: $control-height !default;
$select-line-height: var(--#{$prefix}base-line-height) !default;
$select-margin: 0 !default;
$select-padding: $control-padding-vertical $control-padding-horizontal !default;
$select-arrow-color: $select-color !default;
$select-arrow-size: 1rem !default;
$select-placeholder-opacity: var(--#{$prefix}base-disabled-opacity) !default;
/* @docs */
Expand Down Expand Up @@ -66,7 +67,7 @@ $select-placeholder-opacity: var(--#{$prefix}base-disabled-opacity) !default;
margin: var(--#{$prefix}select-margin, $select-margin);

&-arrow {
background-image: url(svg_arrow($select-color));
background-image: url(svg_arrow($select-arrow-color));
background-repeat: no-repeat;
background-size: var(--#{$prefix}select-arrow-size, $select-arrow-size);
background-position: calc(
Expand Down
34 changes: 34 additions & 0 deletions src/components/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,40 @@ const selectedOptions = ref([]);
</o-field>
</section>

<section class="my-4">
<h3>Variants</h3>
<o-field label="Primary" variant="primary">
<o-select placeholder="Select a character">
<option value="flint">Flint</option>
<option value="silver">Silver</option>
</o-select>
</o-field>
<o-field label="Success" variant="success">
<o-select placeholder="Select a character">
<option value="flint">Flint</option>
<option value="silver">Silver</option>
</o-select>
</o-field>
<o-field label="Info" variant="info">
<o-select placeholder="Select a character">
<option value="flint">Flint</option>
<option value="silver">Silver</option>
</o-select>
</o-field>
<o-field label="Warning" variant="warning">
<o-select placeholder="Select a character">
<option value="flint">Flint</option>
<option value="silver">Silver</option>
</o-select>
</o-field>
<o-field label="Danger" variant="danger">
<o-select placeholder="Select a character">
<option value="flint">Flint</option>
<option value="silver">Silver</option>
</o-select>
</o-field>
</section>

<section class="my-4">
<h3>Sizes</h3>

Expand Down

0 comments on commit d7009b0

Please sign in to comment.