proper disable

This commit is contained in:
Henry Jameson 2024-12-31 13:05:15 +02:00
commit acbb53d6a4
5 changed files with 47 additions and 7 deletions

View file

@ -11,8 +11,9 @@ export default {
'Avatar'
],
states: {
hover: ':hover',
active: '.-active'
hover: ':hover:not(.disabled)',
active: '.-active',
disabled: '.disabled'
},
defaultRules: [
{
@ -85,6 +86,28 @@ export default {
textColor: '--link',
textAuto: 'no-preserve'
}
},
{
component: 'Text',
parent: {
component: 'MenuItem',
state: ['disabled']
},
directives: {
textOpacity: 0.25,
textOpacityMode: 'blend'
}
},
{
component: 'Icon',
parent: {
component: 'MenuItem',
state: ['disabled']
},
directives: {
textOpacity: 0.25,
textOpacityMode: 'blend'
}
}
]
}