From d83a44244c06be3e34e9a8b0273e0bbb0e1fde31 Mon Sep 17 00:00:00 2001 From: Mohammad Ataei <80059702+mammadataei@users.noreply.github.com> Date: Wed, 15 Sep 2021 19:30:40 +0430 Subject: [PATCH] fix: variants example (#120) This PR will fix the missing callback function in the `Add Variants` examples. --- plugins/interfaces.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/interfaces.md b/plugins/interfaces.md index 7648e6db..7baaa6a8 100644 --- a/plugins/interfaces.md +++ b/plugins/interfaces.md @@ -70,11 +70,13 @@ plugin(({ addComponents }) => { ```js import plugin from 'windicss/plugin' -plugin(addVariant('pointer-group-hover', ({ modifySelectors }) => { - return modifySelectors(({ className }) => { - return `.no-touch .group:hover .${className}` +plugin(({ addVariant }) => { + addVariant('pointer-group-hover', ({ modifySelectors }) => { + return modifySelectors(({ className }) => { + return `.no-touch .group:hover .${className}` + }) }) -})) +}) ``` ## Add Base Styles