Skip to content

fix(design): forward aria attributes to inputs #511

Open

Description

@uniqueg

Problem

Two accessibility gaps in @elixir-cloud/design, found while adding field validation to the Cloud Registry service form (#453, PR #510):

  • Input components don't pass aria-* attributes (e.g. aria-invalid, aria-describedby) to their inner native inputs, so screen readers don't announce field errors that consumers attach.
  • The collapsible component's trigger never updates aria-expanded, so its open/closed state isn't announced.

Proposed fix

  • Forward aria-* attributes (at least aria-invalid, aria-describedby, aria-label, aria-required) from the host element to the inner input in the input-like components.
  • Keep aria-expanded on the collapsible trigger in sync with its state.

Acceptance criteria

  • Tests show the forwarded attributes on the inner inputs and aria-expanded toggling.
  • No change to the components' public APIs other than the forwarding.

Activity

  1. added
    type: bugSomething isn't working
    ecp-wp4: D4.2ELIXIR Compute Platform WP4 milestone/deliverable this issue contributes to
    on Oct 29, 2026
  2. salihudickson commented on Oct 31, 2026

    @salihudickson
    Contributor

    was about to suggest this, I'll take it up.

  3. salihudickson commented on Oct 31, 2026

    @salihudickson
    Contributor

    Besides aria attributes, I think it we should also forward a list of other native attributes depending on the component.

  4. moved this from In progress to In review in ELIXIR On-Cloudon Nov 13, 2026
  5. added and removed
    status: triageHas not been triaged by admin
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ecp-wp4: D4.2ELIXIR Compute Platform WP4 milestone/deliverable this issue contributes topriority: lowLow prioritystatus: in progressCurrently being worked ontype: bugSomething isn't workingworkload: hoursLikely takes hours to resolve

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions