Skip to content

Fix OpenAPI viewer for dark mode

What does this MR do and why?

Uses the CSS filter property to invert the text color to make the OpenAPI viewer readable when dark mode is enabled. As SwaggerUI currently does not support dark mode out of the box, this seemed like a simple approach to make it readable again.

Also see: https://github.com/swagger-api/swagger-ui/issues/5327#issuecomment-742375520

Screenshots or screen recordings

Before After
Screenshot_2022-08-02_at_12.35.09 Screenshot_2022-08-02_at_12.35.34

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #262641 (closed)

Merge request reports

Loading