p5.js-web-editor icon indicating copy to clipboard operation
p5.js-web-editor copied to clipboard

Accessibility Bug: EditableInput lacks ARIA description

Open pranjal270 opened this issue 9 months ago • 4 comments

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

  1. Enable a screen reader (e.g., VoiceOver, NVDA).
  2. Navigate to a user's Collection page.
  3. Click on a collection name or description to activate EditableInput.
  4. 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,
  // ...

pranjal270 avatar Feb 25 '26 08:02 pranjal270

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.

welcome[bot] avatar Feb 25 '26 08:02 welcome[bot]

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.

pranjal270 avatar Feb 25 '26 08:02 pranjal270

Hi @pranjal270 please feel free to give this a try!

raclim avatar Mar 10 '26 19:03 raclim

@raclim I have made a PR for this issue

Nishthajain7 avatar Apr 29 '26 07:04 Nishthajain7