diff options
| author | marcin mikołajczak <git@mkljczk.pl> | 2024-10-03 21:52:44 +0200 |
|---|---|---|
| committer | marcin mikołajczak <git@mkljczk.pl> | 2024-10-03 21:52:44 +0200 |
| commit | 216ca52073212942ffb6f75b63993a5f5c32a5d6 (patch) | |
| tree | e67dca18d5f0343ae798e60bfec7d7969e54856f /src/components/select/select.vue | |
| parent | a5689464d0829ae038fbba72f3ab96afd917bd8d (diff) | |
| parent | a1c3a7a742ea86b0ddeb67a42ca27f478f0f22a2 (diff) | |
Merge remote-tracking branch 'origin/develop' into bookmark-folders
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'src/components/select/select.vue')
| -rw-r--r-- | src/components/select/select.vue | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 32832126..0fb6fcc0 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -6,13 +6,14 @@ <select :disabled="disabled" :value="modelValue" - v-bind="attrs" + v-bind="$attrs" @change="$emit('update:modelValue', $event.target.value)" > <slot /> </select> {{ ' ' }} <FAIcon + v-if="!$attrs.size && !$attrs.multiple" class="select-down-icon" icon="chevron-down" /> @@ -39,6 +40,38 @@ label.Select { z-index: 1; height: 2em; line-height: 16px; + + &[multiple], + &[size] { + height: 100%; + padding: 0.2em; + + option { + background-color: transparent; + + &.-active { + color: var(--selectionText); + background-color: var(--selectionBackground); + } + } + } + } + + &.disabled, + &:disabled { + background-color: var(--background); + opacity: 1; /* override browser */ + color: var(--faint); + + select { + &[multiple], + &[size] { + option.-active { + color: var(--faint); + background: transparent; + } + } + } } .select-down-icon { |
