Skip to content

fix: avoid grid-gap warning with media query templates - #1575

Open
draarivpatel-ui wants to merge 1 commit into
postcss:mainfrom
draarivpatel-ui:fix/grid-gap-warning-without-template
Open

draarivpatel-ui wants to merge 1 commit into
postcss:mainfrom
draarivpatel-ui:fix/grid-gap-warning-without-template

Conversation

@draarivpatel-ui

Copy link
Copy Markdown

Fixes #1209.

Autoprefixer warned about grid-gap even when the same selector declared grid-template inside media queries. The warning check now also looks for matching templates in media rules, so responsive templates are recognized without changing the existing warning behavior for rules without a template.

Verified with the issue reproduction for grid: true and grid: autoplace, 290 unit tests, and lint.

Copilot AI balanced review requested due to automatic review settings November 25, 2026 18:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

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

Successfully merging this pull request may close these issues.

[css-grid] grid-gap warning needlessly appearing

2 participants