Skip to content

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

Closed

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
    priority: low
    type: bug
    workload: hours
    ecp-wp4: D4.2
    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. added
    status: triage
    and removed on Nov 8, 2026
  5. moved this from In progress to In review in ELIXIR On-Cloudon Nov 13, 2026
  6. added
    status: in progress
    and removed
    status: triage
    on Nov 13, 2026
  7. moved this from In review to Done in ELIXIR On-Cloudon Nov 22, 2026
  8. removed
    status: in progress
    on Nov 23, 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.2priority: lowtype: bugworkload: hours

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions