Skip to content

Commit 0ce525d

Browse files
committed
Fix example
1 parent bb80ab1 commit 0ce525d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/docs/detecting-classes-in-source-files.mdx

+8-6
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,15 @@ You can also use `@source inline()` to generate classes with variants. For examp
229229
.underline {
230230
text-decoration: underline;
231231
}
232-
233-
.hover\\:underline:hover {
234-
text-decoration: underline;
232+
@media (hover: hover) {
233+
.hover\\:underline:hover {
234+
text-decoration: underline;
235+
}
235236
}
236-
237-
.focus\\:underline:focus {
238-
text-decoration: underline;
237+
@media (focus: focus) {
238+
.focus\\:underline:focus {
239+
text-decoration: underline;
240+
}
239241
}
240242
```
241243

0 commit comments

Comments
 (0)