admin-vben/packages/@core/ui-kit/menu-ui/src
AxiosLeo 03ebbea46a
fix(menu): update hover color variable to use the correct reference (#7544)
* fix(menu): update hover color variable to use the correct reference

Medium Severity

In the horizontal .is-light menu section, --menu-item-hover-color is set to hsl(var(--menu-item-color)), but --menu-item-color is already defined as hsl(var(--accent-foreground)). This results in hsl(hsl(...)) at computed-value time, which is invalid CSS. The non-horizontal .is-light block correctly uses var(--menu-item-color) without the extra hsl() wrapper.

* fix(menu): simplify hover styles by removing redundant nested hover rules

Low Severity

The SCSS &:not(.is-active):hover { &:hover { ... } } compiles to a :hover:hover pseudo-class chain, which is functionally identical to a single :hover. The inner &:hover nesting is redundant and adds unnecessary complexity compared to placing styles directly inside the &:not(.is-active):hover block.
2026-02-12 22:22:53 +08:00
..
components fix(menu): update hover color variable to use the correct reference (#7544) 2026-02-12 22:22:53 +08:00
hooks feat: support smooth auto-scroll to active menu item (#6102) 2025-05-03 18:05:26 +08:00
utils perf: format code with better style (#5283) 2025-01-01 11:39:49 +08:00
index.ts feat: add demo for modify menu badge data 2024-12-16 12:45:07 +08:00
menu.vue feat: support smooth auto-scroll to active menu item (#6102) 2025-05-03 18:05:26 +08:00
sub-menu.vue fix: long text style in sidemenu. fixed #4749 (#4770) 2024-10-30 21:43:41 +08:00
types.ts feat: support smooth auto-scroll to active menu item (#6102) 2025-05-03 18:05:26 +08:00