Skip to content

Accessibility improvement for <textarea> form control element #304

Description

@sara-akhtar

There's an issue that's impacting multiple components in our application. The <textarea> element has no associated label which doesn't allow the browser to announce the control to a user that may need it.

Recommendations on fixes:

  • If the control is a labelable element, add a for attribute to a visible label with the id of this control (e.g. );
  • Or, if the control is a labelable element, put the control inside a visible element;
  • Or, add an aria-labelledby attribute to the control. It must point to visible text on the page that is meaningful as a label;
  • Or, if the design cannot have a visible label, provide a label using the aria-label attribute (e.g. aria-label="Activities");
  • Or, if the design cannot have a visible label, use the title attribute to provide a label.

Screenshot 2023-03-09 at 2 00 44 PM

Screenshot 2023-03-09 at 2 04 24 PM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions