better button styles, include popovers in root

This commit is contained in:
Henry Jameson 2024-02-12 03:46:40 +02:00
parent 98f972e557
commit 1c5f156af0
2 changed files with 20 additions and 0 deletions

View File

@ -79,8 +79,27 @@ export default {
shadow: [hoverGlow, ...buttonInsetFakeBorders] shadow: [hoverGlow, ...buttonInsetFakeBorders]
} }
}, },
{
state: ['pressed'],
directives: {
shadow: [...inputInsetFakeBorders]
}
},
{ {
state: ['hover', 'pressed'], state: ['hover', 'pressed'],
directives: {
shadow: [hoverGlow, ...inputInsetFakeBorders]
}
},
{
state: ['toggled'],
directives: {
background: '--accent,-24.2',
shadow: [...inputInsetFakeBorders]
}
},
{
state: ['toggled', 'hover'],
directives: { directives: {
background: '--accent,-24.2', background: '--accent,-24.2',
shadow: [hoverGlow, ...inputInsetFakeBorders] shadow: [hoverGlow, ...inputInsetFakeBorders]

View File

@ -4,6 +4,7 @@ export default {
validInnerComponents: [ validInnerComponents: [
'Underlay', 'Underlay',
'Modals', 'Modals',
'Popover',
'TopBar' 'TopBar'
], ],
defaultRules: [ defaultRules: [