Skip to content

Commit 417ee19

Browse files
committed
rewrite svg: w/ new addVariant API tailwindlabs/tailwindcss#5809
1 parent c4bfffe commit 417ee19

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tailwind.config.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,7 @@ module.exports = {
7474
plugins: [
7575
// imitation of the twin.macro svg: variant. svg:text-green-500 puts green
7676
// on an SVG that's an immediate child of the element
77-
plugin(function ({ addVariant, e }) {
78-
addVariant('svg', ({ modifySelectors, separator }) => {
79-
modifySelectors(
80-
({ className }) => `.${e(`svg${separator}${className}`)} > svg`
81-
)
82-
})
83-
}),
77+
plugin(({ addVariant }) => addVariant('svg', '& > svg')),
8478
childrenPlugin,
8579
],
8680
/**

0 commit comments

Comments
 (0)