Skip to content

Commit

Permalink
fix(VInput/VMessages): move aria attributes to details (#20420)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-thebaud authored Jan 24, 2025
1 parent 57047f6 commit d1ed47c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions packages/vuetify/src/components/VInput/VInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,13 @@ export const VInput = genericComponent<new <T>(
)}

{ hasDetails && (
<div class="v-input__details">
<div
id={ messagesId.value }
class="v-input__details"
role="alert"
aria-live="polite"
>
<VMessages
id={ messagesId.value }
active={ hasMessages }
messages={ messages.value }
v-slots={{ message: slots.message }}
Expand Down
2 changes: 0 additions & 2 deletions packages/vuetify/src/components/VMessages/VMessages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ export const VMessages = genericComponent<VMessagesSlots>()({
textColorStyles.value,
props.style,
]}
role="alert"
aria-live="polite"
>
{ props.active && (
messages.value.map((message, i) => (
Expand Down

0 comments on commit d1ed47c

Please sign in to comment.