swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

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

Open msftedad opened this issue 1 year ago • 2 comments

Q&A (please complete the following information)

  • OS: Windows 11 Enterprise - 23H2
  • Browser: Chrome, Edge
  • Version: Chrome- 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: [e.g. Swagger 2.0, OpenAPI 3.0]

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 avatar May 29 '24 08:05 msftedad

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

msftedad avatar Aug 13 '24 04:08 msftedad

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

maggiewachs avatar Aug 13 '24 16:08 maggiewachs

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

msftedad avatar Mar 07 '25 10:03 msftedad

Hi @maggiewachs, this issue is still repro'ing in the latest version of Swagger UI(5.20.1). Could you please confirm if the timeline for fixing it has been finalized? Thanks

CC: @ponelat

msftedad avatar Mar 18 '25 05:03 msftedad

@msftedad I see you've tagged me in several issues asking the same question. I'm not a maintainer, just another Swagger user trying to be helpful. I don't have the updates you're looking for, sorry!

maggiewachs avatar Mar 18 '25 14:03 maggiewachs