better v1 detection, better menu-item consistency

This commit is contained in:
Henry Jameson 2024-02-27 17:03:39 +02:00
commit c83ddb0b2b
6 changed files with 57 additions and 12 deletions

View file

@ -30,17 +30,44 @@ export default {
{
state: ['active'],
directives: {
background: '$mod(--bg, 5)',
background: '$mod(--bg, 10)',
opacity: 1
}
},
{
state: ['active', 'hover'],
directives: {
background: '$mod(--bg, 15)',
opacity: 1
}
},
{
component: 'Text',
variant: 'normal',
parent: {
component: 'MenuItem',
state: ['normal', 'hover'],
variant: 'normal'
state: ['hover']
},
directives: {
textColor: '--link',
textAuto: 'no-preserve'
}
},
{
component: 'Text',
parent: {
component: 'MenuItem',
state: ['active']
},
directives: {
textColor: '--link',
textAuto: 'no-preserve'
}
},
{
component: 'Icon',
parent: {
component: 'MenuItem',
state: ['active']
},
directives: {
textColor: '--link',