Skip to content

Commit 8d9d389

Browse files
Rectify variant order Closes #376
1 parent db5c7f5 commit 8d9d389

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,13 @@ Here's a complete list of available element modifiers:
178178
| `prose-video:{utility}` | `video` |
179179
| `prose-hr:{utility}` | `hr` |
180180

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

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

0 commit comments

Comments
 (0)