Skip to content

Commit d466626

Browse files
committed
fix: typo in compoundVariant documentation
1 parent 2ddc47b commit d466626

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/TwigComponent/doc/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,12 +1167,12 @@ when multiple other variant conditions are met.
11671167
lg: 'text-lg',
11681168
}
11691169
},
1170-
compoundVariants: {
1171-
// if colors=red AND size = (md or lg), add the `font-bold` class
1172-
colors: ['red'],
1170+
compoundVariants: [{
1171+
// if color = red AND size = (md or lg), add the `font-bold` class
1172+
color: ['red'],
11731173
size: ['md', 'lg'],
11741174
class: 'font-bold'
1175-
}
1175+
}]
11761176
}) %}
11771177

11781178
<div class="{{ alert.apply({color, size}) }}">

0 commit comments

Comments
 (0)