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

fix(preset-mini): remove grid-gap from generated CSS (deprecated in favor of gap), fix #2642 #2872

Merged
merged 3 commits into from Jul 16, 2023

Conversation

henrikvilhelmberglund
Copy link
Contributor

grid-gap was merged with gap (which works both with flexbox and grid) a few years back so this PR removes it from the generated CSS.
grid-column-gap (now column-gap) and grid-row-gap (now row-gap) are also removed.
This should fix a few Vite errors that show up when you use flexbox but end up with grid-gap in the CSS instead of just gap.

As usual I have no idea what I'm doing so it's very possible I may have missed/broken something 😊

@netlify
Copy link

netlify bot commented Jul 14, 2023

Deploy Preview for unocss ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit a3826c3
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/64b1c7a4ffa5c60008a53e02
😎 Deploy Preview https://deploy-preview-2872--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@zyyv zyyv changed the title fix: remove grid-gap from generated CSS (deprecated in favor of gap) fix #2642 fix(preset-mini): remove grid-gap from generated CSS (deprecated in favor of gap) fix #2642 Jul 15, 2023
@antfu antfu changed the title fix(preset-mini): remove grid-gap from generated CSS (deprecated in favor of gap) fix #2642 fix(preset-mini): remove grid-gap from generated CSS (deprecated in favor of gap), fix #2642 Jul 16, 2023
@antfu antfu merged commit 1afc2b6 into unocss:main Jul 16, 2023
10 checks passed
@vipero07
Copy link
Contributor

vipero07 commented Aug 3, 2023

Though this addressed a bug and fixed the bug, this should have been a breaking change. It removed existing functionality (not in newer browsers, but in the browser I'm stuck developing in). A simple fix for me was to add the rule back into my local preset file.

@henrikvilhelmberglund
Copy link
Contributor Author

My bad, didn't mean to break things for anyone 😊

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.

None yet

4 participants