Skip to content

fix(style): use container queries for responsive design#10763

Open
glowcloud wants to merge 1 commit intomasterfrom
fix/media-to-container-queries
Open

fix(style): use container queries for responsive design#10763
glowcloud wants to merge 1 commit intomasterfrom
fix/media-to-container-queries

Conversation

@glowcloud
Copy link
Contributor

@glowcloud glowcloud commented Mar 9, 2026

This PR changes the usage of media queries to container queries, setting the main container to be provided by the element with swagger-ui class. This change is made to allow these styles to apply when Swagger UI is rendered inside of smaller containers, e.g. in Swagger Editor, and should not affect Swagger UI itself.

Note: The mixins don't seem to be used and the topbar in general is supposed to be used for standalone preset, but I updated them as well just in case. If we don't want them to be changed, I will revert them.

Example of styling before:
description-before

responses-before

Example of styling after:
description-aftetr

responses-after

@glowcloud glowcloud self-assigned this Mar 9, 2026
@glowcloud glowcloud marked this pull request as ready for review March 9, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants