Skip to content

Commit a345dae

Browse files
authored
Update corePlugins.js
Add classes to force pseudo state
1 parent 0848e4c commit a345dae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/corePlugins.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,11 @@ export let variantPlugins = {
135135
!flagEnabled(config(), 'hoverOnlyWhenSupported')
136136
? '&:hover'
137137
: '@media (hover: hover) and (pointer: fine) { &:hover }',
138+
'&:is-hovered'
138139
],
139-
'focus',
140+
['focus', '&.is-focused'],
140141
'focus-visible',
141-
'active',
142+
['active', '&.is-active'],
142143
'enabled',
143144
'disabled',
144145
].map((variant) => (Array.isArray(variant) ? variant : [variant, `&:${variant}`]))

0 commit comments

Comments
 (0)