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

Inconsistent background colors in code sections #6241

Closed
hkosova opened this issue Jul 20, 2020 · 0 comments · Fixed by #6472
Closed

Inconsistent background colors in code sections #6241

hkosova opened this issue Jul 20, 2020 · 0 comments · Fixed by #6472

Comments

@hkosova
Copy link
Contributor

hkosova commented Jul 20, 2020

Q&A (please complete the following information)

  • OS: Windows 10
  • Browser: Chrome latest
  • Method of installation: https://petstore.swagger.io
  • Swagger-UI version: 3.30.0
  • Swagger/OpenAPI version: any

Content & configuration

Example Swagger/OpenAPI definition: see https://petstore.swagger.io

Describe the bug you're encountering

This is a follow up to PR #6236.

Code sections with and without syntax highlighting use different background color, which does not look good. The colors should be consistent.

To reproduce...

Try out any operation in https://petstore.swagger.io.

Expected behavior

The "Example", "Response body", "Response headers", "Curl", and "Request URL" sections should have the same background color.

Screenshots

image

Additional context or thoughts

Consider rendering the "Request URL" and "Response headers" sections using Highlight.js as well, but with language = plain text (plaintext, txt, or text).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants