Skip to content

Commit

Permalink
Set the background color on <option> to fix readability issue (#5278)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Dec 16, 2024
1 parent 87ce0b3 commit d979b1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/VSelectField/VSelectField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,13 @@ const splitAttrs = computed(() => {
v-bind="splitAttrs.nonClassAttrs"
:aria-label="labelText"
>
<option v-if="blankText" disabled value="">{{ blankText }}</option>
<option v-if="blankText" class="bg-overlay" disabled value="">
{{ blankText }}
</option>
<option
v-for="choice in choices"
:key="choice.key"
class="bg-overlay"
:value="choice.key"
:selected="choice.key === selectValue ? true : undefined"
>
Expand Down

0 comments on commit d979b1c

Please sign in to comment.