Skip to content

Commit 1a6972e

Browse files
Rectify variant order Closes #376
1 parent 0ab25dc commit 1a6972e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,13 @@ Here's a complete list of available element modifiers:
175175
| `prose-video:{utility}` | `video` |
176176
| `prose-hr:{utility}` | `hr` |
177177

178-
When stacking these modifiers with other modifiers like `hover`, you most likely want the other modifier to come first:
178+
When stacking these modifiers with other modifiers like `hover`, you most likely want the other modifier to come last:
179+
180+
```html
181+
<article class="prose prose-a:text-blue-600 prose-a:hover:text-blue-500">{{ markdown }}</article>
182+
```
183+
184+
If you are still using in Tailwind CSS v3, the modifier order is the opposite:
179185

180186
```html
181187
<article class="prose prose-a:text-blue-600 hover:prose-a:text-blue-500">{{ markdown }}</article>

0 commit comments

Comments
 (0)