Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a11y: Page title version ID does not have enough color contrast #9583

Open
ghost opened this issue Feb 13, 2024 · 0 comments · May be fixed by #9703
Open

a11y: Page title version ID does not have enough color contrast #9583

ghost opened this issue Feb 13, 2024 · 0 comments · May be fixed by #9703

Comments

@ghost
Copy link

ghost commented Feb 13, 2024

Q&A (please complete the following information)

  • OS: [e.g. macOS] Windows 10
  • Browser: [e.g. chrome, safari] Chrome
  • Version: [e.g. 22] 121
  • Method of installation: [e.g. npm, dist assets] npm
  • Swagger-UI version: [e.g. 3.10.0] Swagger UI React 5.11.3
  • Swagger/OpenAPI version: [e.g. Swagger 2.0, OpenAPI 3.0] OpenAPI 3.0

Content & configuration

Basic/default

Describe the bug you're encountering

We are using a tool called Sort site to evaluate our site for 508 accessibility. It is flagging that there is not enough color contrast in the version identifier at the top of the page. The Sort site error is below.
Violates WCAG 2.0 AA 1.4.3 https://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html
This is on the "pre" with "class=version" inside a "small", and on the "pre" with "class=version" inside a "small class=version-stamp", which are both contained in the h2 with class "title".

To reproduce...

View any OpenAPI spec title

Expected behavior

Color contract should be corrected

Screenshots

Here's the element with the error (the 1.0.0 and the OAS 3.0)
image

Here's the Sort Site information:
image

Additional context or thoughts

@dgading dgading linked a pull request Mar 15, 2024 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants