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(attributify)!: add fill and opacity to default ignore attrs, close #2104 #2110

Merged
merged 1 commit into from Jan 25, 2023

Conversation

antfu
Copy link
Member

@antfu antfu commented Jan 25, 2023

close #2104

This is a breaking change if you are using:

<div opacity="10" fill="red" />

They won't be captured by unocss anymore.

Migration

You can either prefix them with un-

<div un-opacity="10" un-fill="red" />

Or use op as the shorthand for opacity:

<div op="10"/>

Or update the config to change it back:

presetAttributify({
  ignoreAttributes: ['placeholder'] // previous default
})

@netlify
Copy link

netlify bot commented Jan 25, 2023

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit fa1a4e0
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/63d117f70d99eb0008ba031c
😎 Deploy Preview https://deploy-preview-2110--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 enabled auto-merge (squash) January 25, 2023 11:53
@antfu antfu disabled auto-merge January 25, 2023 12:00
@antfu antfu changed the title fix(attributify)!: add fill and opacity to default ignore attrs fix(attributify)!: add fill and opacity to default ignore attrs, close #2104 Jan 25, 2023
@antfu antfu merged commit e3f3e71 into main Jan 25, 2023
@antfu antfu deleted the fix/attributify-default-ignore branch January 25, 2023 12:00
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.

SVG opacity conflicts with attributify opacity=""
1 participant