[0.3] Rename parent-hover to group-hover (#271)
This commit is contained in:
parent
ad48de9500
commit
858b725896
4 changed files with 11 additions and 11 deletions
|
|
@ -21,12 +21,12 @@ const variantGenerators = {
|
|||
|
||||
container.before(cloned.nodes)
|
||||
},
|
||||
'parent-hover': (container, config) => {
|
||||
'group-hover': (container, config) => {
|
||||
const cloned = container.clone()
|
||||
|
||||
cloned.walkRules(rule => {
|
||||
// prettier-ignore
|
||||
rule.selector = `.parent:hover ${buildClassVariant(rule.selector, 'parent-hover', config.options.separator)}`
|
||||
rule.selector = `.group:hover ${buildClassVariant(rule.selector, 'group-hover', config.options.separator)}`
|
||||
})
|
||||
|
||||
container.before(cloned.nodes)
|
||||
|
|
@ -48,7 +48,7 @@ export default function(config) {
|
|||
|
||||
atRule.before(atRule.clone().nodes)
|
||||
|
||||
_.forEach(['focus', 'hover', 'parent-hover'], variant => {
|
||||
_.forEach(['focus', 'hover', 'group-hover'], variant => {
|
||||
if (variants.includes(variant)) {
|
||||
variantGenerators[variant](atRule, unwrappedConfig)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import _ from 'lodash'
|
|||
|
||||
function mergeModules(userModules, defaultModules) {
|
||||
if (userModules === 'all') {
|
||||
return _.mapValues(defaultModules, () => ['responsive', 'hover', 'focus', 'parent-hover'])
|
||||
return _.mapValues(defaultModules, () => ['responsive', 'hover', 'focus', 'group-hover'])
|
||||
}
|
||||
|
||||
return _.defaults(userModules, defaultModules)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue