Accessibility Bug: EditableInput lacks ARIA description
p5.js version
N/A (Web Editor UI issue)
What is your operating system?
Windows
Web browser and version
chrome://145.0.7632.117
Actual Behavior
When focused, the input should expose an accessible name that clearly describes its purpose.
For example, when used in CollectionMetadata.jsx, screen readers should announce labels such as "Collection Name" or "Collection Description" instead of a generic input field announcement.
Expected Behavior
The EditableInput component could accept a description prop and pass it to the underlying input as an accessible label (aria-label or aria-labelledby), allowing contextual screen reader announcements.
Steps to Reproduce
- Enable a screen reader (e.g.,
VoiceOver,NVDA). - Navigate to a user's Collection page.
- Click on a collection name or description to activate
EditableInput. - Observe that the screen reader announces only a generic input field without context.
Snippet:
// client/modules/IDE/components/EditableInput.jsx (Line 7)
// TODO I think this needs a description prop so that it's accessible
function EditableInput({
validate,
// ...
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.
Hi @raclim I'd like to work on this issue could you please assign this issue to me !
My plan is to add a description prop to the EditableInput component and pass it down as an aria-label to the underlying InputComponent. I'll also update its usages (like in CollectionMetadata.jsx) to pass appropriate translated strings (e.g., 'Collection Name' and 'Collection Description') so that screen readers can correctly announce the inputs when editing.
Hi @pranjal270 please feel free to give this a try!
@raclim I have made a PR for this issue