Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do we use aria-errormessage instead of aria-describedby #2089

Closed
mimarz opened this issue May 31, 2024 · 4 comments
Closed

Do we use aria-errormessage instead of aria-describedby #2089

mimarz opened this issue May 31, 2024 · 4 comments
Labels
♿️ accessibility Issues related to accessibility

Comments

@mimarz
Copy link
Collaborator

mimarz commented May 31, 2024

When do we add support for aria-errormessage, should we even though its not fully supported?

We are currently using aria-invalid in combination with aria-describedby which is also an valid option.

Notes:

@mimarz mimarz converted this from a draft issue May 31, 2024
@mimarz mimarz moved this from 🔵 Inbox to 📄 Todo in Team Designsystemet May 31, 2024
@mimarz mimarz added the ♿️ accessibility Issues related to accessibility label May 31, 2024
@mimarz mimarz changed the title aria-errormessage Do we usearia-errormessage instead of aria-describedby May 31, 2024
@mimarz mimarz changed the title Do we usearia-errormessage instead of aria-describedby Do we use aria-errormessage instead of aria-describedby May 31, 2024
@mimarz mimarz moved this from 📄 Todo to 📋 Backlog in Team Designsystemet Jun 3, 2024
@Barsnes
Copy link
Member

Barsnes commented Jun 3, 2024

Since support is sparse, I think we should wait before implemeting this

@eirikbacker
Copy link
Contributor

eirikbacker commented Jun 15, 2024

aria-describedby is very well supported, unlike aria-errormessage. Only tip would be to ensure error-message ID is always prepended before help-text-ID in the attribute, so:
aria-describedby="my-error-id my-helptext-id"
aria-describedby="my-helptext-id my-error-id"

@eirikbacker
Copy link
Contributor

Part of #2355

@eirikbacker
Copy link
Contributor

Closing for now as aria-errormessage support is too low

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Team Designsystemet Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
♿️ accessibility Issues related to accessibility
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants