Replies: 2 comments
-
Hi @zelinka-marek, Thanks for the idea. You can use the documentId provided by each field (similar to the id prop) like this: <span id={fields.avatar.documentId}>
{/* ... */}
</span> then specify the description option when calling a conform helper: <input
{...conform.input(fields.avatar, { type: 'url', description: true })}
/> It will manage the We are not using aria-error message here because of limited support from screen readers. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, thanks @edmundhung! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋, there!
I have the following input:
If there is an error, the
aria-describedby
prop will be overwritten to the error id, ignoring"email-option"
.Can we have a way to merge set aria-* props, something like:
Or instead of using
aria-describedby
for the error id, we could use aria-errormessage.Beta Was this translation helpful? Give feedback.
All reactions