refactor: use named container query for Columns component#222
Merged
brandonmcconnell merged 1 commit intomainfrom Mar 19, 2026
Merged
Conversation
Update the `Columns` component and its Storybook examples to utilize a named container query (`columns-container`). This provides explicit targeting for container query breakpoints, enhancing isolation and specificity of responsive behaviors, and preventing potential conflicts in complex or nested layouts.
dks333
approved these changes
Mar 19, 2026
lawreka
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactors the
Columnscomponent to utilize a named container query,columns-container. This change explicitly scopes the responsive styling of theColumnscomponent, preventing potential unintended interactions with other unnamed container queries on the page. By using a named query, the component's responsive behavior becomes more robust and predictable.The
@mintlify/componentspackage version has been updated to1.0.13to reflect this change.Test Plan
Verify the responsiveness and layout of the
Columnscomponent, particularly within a container, using the updatedInsideContainerstory in Storybook. Ensure the grid columns adjust correctly at different container sizes.Note
Low Risk
Low risk: this is a small styling-scope change limited to the
Columnsresponsive Tailwind container query classes plus a Storybook demo update.Overview
Updates
Columnsto use a named container query (columns-container) for its responsive grid classes, scoping container-driven breakpoints to avoid collisions with other container query contexts.Updates the
InsideContainerStorybook wrapper to declare the named container, and bumps@mintlify/componentsto1.0.13with a corresponding changelog entry.Written by Cursor Bugbot for commit a57699b. This will update automatically on new commits. Configure here.