fix button pressed state
This commit is contained in:
parent
6e5da62233
commit
918fbecf3e
1 changed files with 3 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ export default {
|
||||||
// normal: '' // normal state is implicitly added, it is always included
|
// normal: '' // normal state is implicitly added, it is always included
|
||||||
toggled: '.toggled',
|
toggled: '.toggled',
|
||||||
focused: ':focus-within',
|
focused: ':focus-within',
|
||||||
pressed: ':focus:active',
|
pressed: ':active',
|
||||||
hover: ':is(:hover, :focus-visible):not(:disabled)',
|
hover: ':is(:hover, :focus-visible):not(:disabled)',
|
||||||
disabled: ':disabled'
|
disabled: ':disabled'
|
||||||
},
|
},
|
||||||
|
|
@ -18,7 +18,8 @@ export default {
|
||||||
variants: {
|
variants: {
|
||||||
// Variants save on computation time since adding new variant just adds one more "set".
|
// Variants save on computation time since adding new variant just adds one more "set".
|
||||||
// normal: '', // you can override normal variant, it will be appenended to the main class
|
// normal: '', // you can override normal variant, it will be appenended to the main class
|
||||||
danger: '.danger'
|
danger: '.-danger',
|
||||||
|
transparent: '.-transparent'
|
||||||
// Overall the compuation difficulty is N*((1/6)M^3+M) where M is number of distinct states and N is number of variants.
|
// Overall the compuation difficulty is N*((1/6)M^3+M) where M is number of distinct states and N is number of variants.
|
||||||
// This (currently) is further multipled by number of places where component can exist.
|
// This (currently) is further multipled by number of places where component can exist.
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue