fix(ui): expose Input error state to assistive technology - #46
Conversation
|
Welcome, @thariq122, and thanks for your first pull request to agent-postmortem. A quick look at CONTRIBUTING.md covers how things are set up and run here. I'll review this shortly. Ask anything in the thread if something is unclear. |
|
Excellent work @thariq122, this is exactly right. You went past the issue: All checks green. Merging. A star is appreciated if this was fun, and there are more open issues whenever you want another. |
|
This is in, @thariq122. Really appreciate it. Good, focused change. Exactly the kind of thing agent-postmortem needs. If agent-postmortem is useful to you, a star goes a long way. Happy to see more from you whenever you have the time. |
What & why
This PR improves the accessibility of the
Inputcomponent by exposing validation errors to assistive technologies.Closes #35
Changes
useId()aria-describedbyaria-invalidwhen validation errors existrole="alert"to the error messageforwardRefAPIChecklist