swagger-api / swagger-api/swagger-ui

a11y: missing labels on controls (text fields, select boxes)

Open
#6,512 4 comments 0 reactions 1 assignee View on GitHub

@char0n is already working on this.

Since Sep 30, 2021.

backlog cat: a11y Hacktoberfest
Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Swagger UI renderer breaks accessibility rules: WCAG 1.3.1, WCAG 4.1.2

  • path: http://localhost:1723
  • also text fields, checkboxes etc

Fix ONE of the following:

  • aria-label attribute does not exist or is empty
  • aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
  • Form element does not have an implicit (wrapped)
  • Form element does not have an explicit
  • Element has no title attribute or the title attribute is empty

See screenshot: fields in RED are failing

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.