swagger-api / swagger-api/swagger-ui
Ensures buttons have discernible text (.root-690)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
Q&A (please complete the following information)
- OS: Windows 11 Enterprise - 23H2
- Browser: Version 124.0.6367.93 (Official Build) (64-bit)
- Edge - Version 124.0.2478.80 (Official build) (64-bit)
- Method of installation: npm
- Swagger-UI version: 4.6.1
- Swagger/OpenAPI version: Swagger 2.0, OpenAPI(2,3)
Content & configuration
Example Swagger/OpenAPI definition:
# your YAML here
Swagger-UI configuration options:
SwaggerUI({
// your config options here
})
?yourQueryStringConfig
Describe the bug you're encountering
Ensures buttons have discernible text (.root-690)
To reproduce...
Steps to reproduce the behavior:
- Launch the URL :https://codesandbox.io/p/sandbox/nervous-fog-d87m3w?file=%2fpackage.json
- Observe that Ensures buttons have discernible text (.root-690) or not.
Expected behavior
Ensures buttons have discernible text (button-name - https://accessibilityinsights.io/info-examples/web/button-name)
Screenshots
Additional context or thoughts
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox reproduction and inspect the Swagger UI buttons reported by the button-name accessibility check. Trace those buttons to the relevant Swagger UI source entry point, then verify that each affected button has discernible text and rerun the accessibility check to confirm the issue is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100