Skip to content

Commit

Permalink
fix: dropdown menu fix for accessability announcement (#1619)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnixon authored Aug 22, 2024
1 parent e2cbd28 commit 31cd6ee
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/components/CvDropdown/CvDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,22 @@
</slot>
</ul>
</div>
<div v-if="data.isInvalid" :class="`${carbonPrefix}--form-requirement`">
<p
v-if="data.isInvalid"
:class="`${carbonPrefix}--form-requirement`"
role="alert"
aria-atomic="true"
>
<slot name="invalid-message">{{ invalidMessage }}</slot>
</div>
<div v-else-if="isWarning" :class="`${carbonPrefix}--form-requirement`">
</p>
<p
v-else-if="isWarning"
:class="`${carbonPrefix}--form-requirement`"
role="alert"
aria-atomic="true"
>
<slot name="warning-message">{{ warningMessage }}</slot>
</div>
</p>
<div
v-else-if="data.isHelper"
:aria-disabled="disabled || null"
Expand Down

0 comments on commit 31cd6ee

Please sign in to comment.