Skip to content

Commit

Permalink
fix: variants example (#120)
Browse files Browse the repository at this point in the history
This PR will fix the missing callback function in the `Add Variants` examples.
  • Loading branch information
mammadataei committed Sep 15, 2021
1 parent 3b685b0 commit d83a442
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d83a442

Please sign in to comment.