aboutsummaryrefslogtreecommitdiff
path: root/src/components/menu_item.style.js
blob: 43b5c35a3a9321f31da4000767186a4841c7911d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export default {
  name: 'MenuItem',
  selector: '.menu-item',
  validInnerComponents: [
    'Text',
    'Icon',
    'Input',
    'Border'
  ],
  states: {
    hover: ':hover',
    active: 'active'
  },
  defaultRules: [
    {
      directives: {
        background: '--fg'
      }
    },
    {
      component: 'Text',
      variant: 'normal',
      parent: {
        component: 'MenuItem',
        state: ['normal', 'hover'],
        variant: 'normal'
      },
      directives: {
        textColor: '--link',
        textAuto: 'no-preserve'
      }
    },
    {
      component: 'Icon',
      parent: {
        component: 'MenuItem',
        state: ['hover']
      },
      directives: {
        textColor: '--link',
        textAuto: 'no-preserve'
      }
    }
  ]
}