Skip to content

Conversation

bmiit145
Copy link

@bmiit145 bmiit145 commented Jan 9, 2025

Fixes #366

Add element modifiers prose-picture:* and prose-images:* to target <picture> and <img> <picture> respectively.

  • Modify src/index.js to include element modifiers for prose-picture:* and prose-images:*.
  • Update README.md to list prose-picture:* and prose-images:* as available element modifiers.
  • Add default styles for prose-picture:* and prose-images:* in src/styles.js.
  • Add tests for the new element modifiers prose-picture:* and prose-images:* in src/index.test.js.

For more details, open the Copilot Workspace session.

Fixes tailwindlabs#366

Add element modifiers `prose-picture:*` and `prose-images:*` to target `<picture>` and `<img> <picture>` respectively.

* Modify `src/index.js` to include element modifiers for `prose-picture:*` and `prose-images:*`.
* Update `README.md` to list `prose-picture:*` and `prose-images:*` as available element modifiers.
* Add default styles for `prose-picture:*` and `prose-images:*` in `src/styles.js`.
* Add tests for the new element modifiers `prose-picture:*` and `prose-images:*` in `src/index.test.js`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/tailwindlabs/tailwindcss-typography/issues/366?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tailwindcss-typography ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 1:02pm

Copy link

@SpiritITSolutions SpiritITSolutions left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I be fine , well code

@@ -102,6 +102,8 @@ module.exports = plugin.withOptions(
['th'],
['td'],
['img'],
['picture'],
['img', 'picture > img'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be images?

Suggested change
['img', 'picture > img'],
['images', 'img', 'picture > img'],

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.

Missing element modifier prose-picture
3 participants