We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NextUi's Image has selectors which are purged from css I tried different workarounds but it still doesn't worj so Images are not displaying at all
<img src="my-img.webp" class="relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100 shadow-none transition-transform-opacity motion-reduce:transition-none !duration-300 rounded-large" alt="My image" style="cursor:pointer" data-loaded="true"> here the issue with the data-[loaded=true]:opacity-100 selector
<img src="my-img.webp" class="relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100 shadow-none transition-transform-opacity motion-reduce:transition-none !duration-300 rounded-large" alt="My image" style="cursor:pointer" data-loaded="true">
data-[loaded=true]:opacity-100
In css it looks like this .data-\[loaded\=true\]\:opacity-100[data-loaded=true],.data-\[moving\]\:opacity-100[data-moving]{opacity:1}
.data-\[loaded\=true\]\:opacity-100[data-loaded=true],.data-\[moving\]\:opacity-100[data-moving]{opacity:1}
I tried different options but nothing works
safelist: { css: '[data-loaded=true]', standard: [/h-/, "img", ":opacity-100", /[data-loaded=true]$/], greedy: [":opacity-100", "data-loaded"], dynamicAttributes: ["data-loaded"] }
install Next UI use Image component
do not purge mentioned attribute selector
Google Chrome
context
The text was updated successfully, but these errors were encountered:
hi @MariaLazarenko, were you able to figure this out?
Sorry, something went wrong.
No branches or pull requests
Describe the bug
NextUi's Image has selectors which are purged from css
I tried different workarounds but it still doesn't worj so Images are not displaying at all
<img src="my-img.webp" class="relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100 shadow-none transition-transform-opacity motion-reduce:transition-none !duration-300 rounded-large" alt="My image" style="cursor:pointer" data-loaded="true">
here the issue with the
data-[loaded=true]:opacity-100
selectorIn css it looks like this
.data-\[loaded\=true\]\:opacity-100[data-loaded=true],.data-\[moving\]\:opacity-100[data-moving]{opacity:1}
I tried different options but nothing works
To Reproduce
install Next UI
use Image component
Expected Behavior
do not purge mentioned attribute selector
Environment
Google Chrome
Add any other context about the problem here
context
Code of Conduct
The text was updated successfully, but these errors were encountered: