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): content-none should render { content: none } #2650

Merged
merged 2 commits into from May 23, 2023

Conversation

kcpru
Copy link
Contributor

@kcpru kcpru commented May 22, 2023

fix #2645

Description:
The issue is related to the distinction between content-empty and content-none in the static.ts file. Currently, content-empty sets the content to an empty character (""), whereas content-none should set the none attribute of the content. However, the code incorrectly sets content: '""' for content-none. This pull request fixes this inconsistency.

Changes Made:

  • Modified the code in static.ts to correctly set content: 'none' for content-none.

@kcpru kcpru requested a review from antfu as a code owner May 22, 2023 21:57
@netlify
Copy link

netlify bot commented May 22, 2023

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit c3db8f3
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/646cb0ccb54ece00080e770b
😎 Deploy Preview https://deploy-preview-2650--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 settings.

@antfu antfu changed the title fix: distinction between content-empty and content-none fix(preset-mini): content-none should render { content: none } May 23, 2023
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.

I think there should be a distinction between content-empty and content-none.
2 participants