Skip to content

Commit

Permalink
fix: select menu placeholder styling (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber authored Oct 21, 2024
1 parent 69c17a0 commit 4137fb4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/InputSelect/PdapInputSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
@click="toggleOpen"
@keydown="handleKeyDown"
>
<div class="selected-value">
<div
class="selected-value"
:class="{ 'value-is-placeholder': !selectedOption }"
>
{{ selectedOption ? selectedOption.label : placeholder }}
</div>
<div class="arrow" :class="{ open: isOpen }" />
Expand Down Expand Up @@ -271,6 +274,10 @@ watch(
@apply py-2 px-3 text-neutral-950 dark:text-neutral-50;
}
.selected-value.value-is-placeholder {
@apply text-neutral-600;
}
.arrow {
@apply absolute top-1/2 right-3 w-0 h-0 border-l-8 border-r-8 border-t-8 border-solid border-x-transparent border-t-neutral-950 dark:border-t-neutral-50 transition-transform;
}
Expand Down

0 comments on commit 4137fb4

Please # to comment.