swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.59k stars 8.96k forks source link

Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (.btn-primary) #9984

Open msftedad opened 5 months ago

msftedad commented 5 months ago

Q&A (please complete the following information)

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

To reproduce...

Steps to reproduce the behavior:

  1. Launch the URL : https://codesandbox.io/p/sandbox/nervous-fog-d87m3w?file=%2fpackage.json
  2. Observe that Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (.btn-primary) or not.

Expected behavior

Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (color-contrast)

Screenshots

Color Contrast AI- Swagger

Additional context or thoughts

msftedad commented 3 months ago

Hi @maggiewachs, is there any update on this bug, and could you please provide a tentative ETA for fixing it

maggiewachs commented 3 months ago

See my comment here: https://github.com/swagger-api/swagger-ui/issues/8172#issuecomment-2286601376