You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PR #314 (Issue #144) added default styles to the <picture> but there are is no element modifier defined that would allow us to easily change the default styles via classes
Another question that this brings up is, if the prose-img modifier should target the picture>img element as well. It does ATM https://play.tailwindcss.com/VFWabWBye5 so changing this is likely a breaking change and something to be resolved separately?
The text was updated successfully, but these errors were encountered:
tordans
changed the title
Missing overwrite prose-picture
Missing element modifier prose-pictureDec 5, 2024
<Picturesrc={image}formats={['png','avif']}class="rounded"// classes on the <img> tagpictureAttributes={{class: 'not-prose'}}// classes on the <picture> tagalt=""/>
What version of @tailwindcss/typography are you using?
"@tailwindcss/typography": "^0.5.15",
What version of Node.js are you using?
lts/*
What browser are you using?
Chrome
What operating system are you using?
MacOS
Reproduction repository
Describe your issue
The PR #314 (Issue #144) added default styles to the
<picture>
but there are is no element modifier defined that would allow us to easily change the default styles via classesI suggest to add two modfiers
prose-picture:*
targeting<picture>
prose-images:*
targeting<img> <picture>
Another question that this brings up is, if the
prose-img
modifier should target thepicture>img
element as well. It does ATM https://play.tailwindcss.com/VFWabWBye5 so changing this is likely a breaking change and something to be resolved separately?The text was updated successfully, but these errors were encountered: