Skip to content

Commit

Permalink
fix: add missing aria attribute to w-textarea and w-select (#146)
Browse files Browse the repository at this point in the history
* fix: add missing aria to w-textarea

* fix: add missing aria for w-select
  • Loading branch information
felicia-haggqvist authored Mar 13, 2024
1 parent aa045a6 commit 191be0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/forms/w-select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const chevronClasses = computed(() => ({
</script>

<template>
<w-field v-bind="{ ...$attrs, ...$props }" #default="{ triggerValidation, hasValidationErrors }">
<w-field v-bind="{ ...$attrs, ...$props }" #default="{ triggerValidation, aria, hasValidationErrors }">
<div :class="wrapperClasses">
<div :class="selectWrapperClasses">
<select
Expand All @@ -43,7 +43,7 @@ const chevronClasses = computed(() => ({
]"
:disabled="disabled"
:readOnly="readOnly"
v-bind="{ ...$attrs, class: '' }" v-model="model" :id="id" @blur="triggerValidation">
v-bind="{ ...aria, ...$attrs, class: '' }" v-model="model" :id="id" @blur="triggerValidation">
<slot />
</select>
<div :class="chevronClasses">
Expand Down
4 changes: 2 additions & 2 deletions components/forms/w-textarea.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<w-field v-bind="{ ...$attrs, ...$props }" #default="{ triggerValidation, hasValidationErrors }">
<w-field v-bind="{ ...$attrs, ...$props }" #default="{ triggerValidation, aria, hasValidationErrors }">
<div :class="wrapperClass">
<textarea
:class="[
Expand All @@ -10,7 +10,7 @@
]"
:disabled="disabled"
:readOnly="readOnly"
v-bind="{ ...$attrs, class: '' }" v-model="model" :id="id" @blur="triggerValidation"
v-bind="{ ...aria, ...$attrs, class: '' }" v-model="model" :id="id" @blur="triggerValidation"
/>
</div>
</w-field>
Expand Down

0 comments on commit 191be0f

Please sign in to comment.