diff options
| author | Henry Jameson <me@hjkos.com> | 2024-02-27 17:03:39 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-02-27 17:03:39 +0200 |
| commit | c83ddb0b2b824fb3c0e3bb596552e98c162c78d3 (patch) | |
| tree | 8b877ba3d3bcaa398b5d4050d0ff74e00f8d5932 /src/components/menu_item.style.js | |
| parent | d3b5f76486373f658a2802b5b9ab7628ebc862fb (diff) | |
better v1 detection, better menu-item consistency
Diffstat (limited to 'src/components/menu_item.style.js')
| -rw-r--r-- | src/components/menu_item.style.js | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/src/components/menu_item.style.js b/src/components/menu_item.style.js index 3c70bd9f..3812f894 100644 --- a/src/components/menu_item.style.js +++ b/src/components/menu_item.style.js @@ -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', |
