fix focus styles for button

This commit is contained in:
Henry Jameson 2025-03-19 03:23:36 +02:00
parent 76c1ab13ec
commit 3f062fb5b6

View file

@ -9,7 +9,7 @@ export default {
// However, cascading still works, so resulting state will be result of merging of all relevant states/variants
// normal: '' // normal state is implicitly added, it is always included
toggled: '.toggled',
focused: ':focus-visible',
focused: ':focus-within',
pressed: ':focus:active',
hover: ':hover:not(:disabled)',
disabled: ':disabled'
@ -89,6 +89,13 @@ export default {
shadow: ['--buttonDefaultHoverGlow', '--buttonPressedBevel']
}
},
{
state: ['toggled', 'focused'],
directives: {
background: '--accent,-24.2',
shadow: ['--buttonDefaultHoverGlow', '--buttonPressedBevel']
}
},
{
state: ['toggled', 'disabled'],
directives: {