Skip to content

Commit be8a7df

Browse files
Remove images variant and add test for prose-picture variant
1 parent 31e1e8c commit be8a7df

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ module.exports = plugin.withOptions(
9797
['td'],
9898
['img'],
9999
['picture'],
100-
['images', 'img', 'picture'],
101100
['video'],
102101
['hr'],
103102
['lead', '[class~="lead"]'],
@@ -134,4 +133,3 @@ module.exports = plugin.withOptions(
134133
}
135134
}
136135
)
137-

src/index.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ test('element variants', async () => {
707707
prose-th:text-left
708708
prose-td:align-center
709709
prose-img:rounded-lg
710+
prose-picture:my-8
710711
prose-video:my-12
711712
prose-hr:border-t-2
712713
"
@@ -855,6 +856,11 @@ test('element variants', async () => {
855856
:is(:where(img):not(:where([class~='not-prose'], [class~='not-prose'] *))) {
856857
border-radius: 0.5rem;
857858
}
859+
.prose-picture\:my-8
860+
:is(:where(picture):not(:where([class~='not-prose'], [class~='not-prose'] *))) {
861+
margin-top: 2rem;
862+
margin-bottom: 2rem;
863+
}
858864
.prose-video\:my-12
859865
:is(:where(video):not(:where([class~='not-prose'], [class~='not-prose'] *))) {
860866
margin-top: 3rem;

0 commit comments

Comments
 (0)