Skip to content

a11y: Improper use of preformatted text elements for version labels #10481

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

Open
juliannemarik opened this issue Jun 4, 2025 · 0 comments
Open

Comments

@juliannemarik
Copy link

Q&A

  • OS: [e.g. macOS]: macOS
  • Browser: [e.g. chrome, safari]: Chrome
  • Version: [e.g. 22]: 136
  • Method of installation: [e.g. npm, dist assets]: @nestjs/swagger via npm
  • Swagger-UI version: [e.g. 3.10.0]: @nestjs/swagger version 11.2.0 which uses Swagger UI version 5.21.0.
  • Swagger/OpenAPI version: [e.g. Swagger 2.0, OpenAPI 3.0]: OpenAPI version 3.0

Content & configuration

Basic/default configuration

Describe the bug you're encountering

The version labels are represented in the DOM by <pre> tags:

Image

Expected behavior

<pre> tags should only be used to represent blocks of computer code or figures:

Image
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

No branches or pull requests

1 participant