-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix: 🐛 change disabled to readonly for form inputs #2618
fix: 🐛 change disabled to readonly for form inputs #2618
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I do understand the motivation for this change within the a11y goal in mind. That said, I do think, despite it looks small, the 2 attributes provide different behaviours that can be trivial. Also, this is an extended pattern in our codebase and this change can disrupt that, no problem with it, but it might need to be spread within the team. I do think this could be a topic to discuss within Tech time? Also, feel free to ping me on this topic, I would like to understand better the issue when using disabled within the a11y context |
…isabled-interactive-element-multiple
Funny enough I mentioned that in the jira ticket when I did the initial review and I forgot to check my own comment. I add this to the tech time topic list. Until then, I will do some testing in other forms. I know we have some forms that once the value is set, there is no changing it and I think that would be the times we could see issues with the |
…isabled-interactive-element-multiple
…isabled-interactive-element-multiple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this, the screen reader now picks it up!!
✅ Closes: https://hashicorp.atlassian.net/browse/ICU-15666
Description
This addresses an a11y issue where we use the
disabled
attribute on our form inputs when reading a resource. The fix is to update the attribute toreadonly
. This allows the screen reader to actually see the content and keep the user from being able to edit the details of the resource until they enter edit mode.This is a small change and as long as there is no disagreement with this approach, I can make a PR that will include a much larger number of fixes.
Screenshots (if appropriate)
Before:
After:
How to Test
Checklist