Skip to content

Commit

Permalink
fix(Select): fix shadow styles
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed May 23, 2023
1 parent 4260db5 commit 3c066e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/select/src/VSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const props = defineProps({
},
shadowClass: {
type: String,
default: 'shadow-sm',
default: 'v-select--shadow',
},
transition: {
type: String,
Expand Down Expand Up @@ -276,6 +276,7 @@ const emitSelected = (val: any) => {
{
'v-select--error': error || !!errorMessages[0] || !!errorMessage,
'v-select--disabled': disabled,
[shadowClass]: shadow,
},
wrapperClass,
]"
Expand All @@ -287,12 +288,7 @@ const emitSelected = (val: any) => {
<div class="v-select-panel">
<ListboxButton
class="v-select-button"
:class="[
btnClass,
{
[shadowClass]: shadow,
},
]"
:class="[btnClass]"
:disabled="disabled"
>
<div
Expand Down
8 changes: 8 additions & 0 deletions packages/themes/src/morpheme/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@
}

.v-select {
$c: &;

&--shadow {
#{$c}-button {
box-shadow: var(--effect-shadow-md);
}
}

&-button {
border: 1px solid var(--v-select-border-color);
border-radius: var(--v-select-border-radius);
Expand Down

0 comments on commit 3c066e8

Please sign in to comment.