From 963e79063f8c053ee83f1e5636ec85f98d53fb47 Mon Sep 17 00:00:00 2001 From: Li Kui <90845831+likui628@users.noreply.github.com> Date: Tue, 13 Aug 2024 22:07:02 +0800 Subject: [PATCH] fix: some icons behave inconsistently on menu and tab (#4144) --- .../@core/ui-kit/menu-ui/src/components/menu.vue | 13 ------------- .../ui-kit/tabs-ui/src/components/tabs/tabs.vue | 6 ------ 2 files changed, 19 deletions(-) diff --git a/packages/@core/ui-kit/menu-ui/src/components/menu.vue b/packages/@core/ui-kit/menu-ui/src/components/menu.vue index 61973216..c24d6eb9 100644 --- a/packages/@core/ui-kit/menu-ui/src/components/menu.vue +++ b/packages/@core/ui-kit/menu-ui/src/components/menu.vue @@ -542,15 +542,6 @@ $namespace: vben; } & > .#{$namespace}-sub-menu { - // .#{$namespace}-menu { - // background: var(--menu-submenu-opened-background-color); - - // .#{$namespace}-sub-menu, - // .#{$namespace}-menu-item:not(.is-active), - // .#{$namespace}-sub-menu-content:not(.is-active) { - // background: var(--menu-submenu-opened-background-color); - // } - // } & > .#{$namespace}-menu { & > .#{$namespace}-menu-item { padding-left: calc( @@ -713,13 +704,11 @@ $namespace: vben; .#{$namespace}-menu-item { fill: var(--menu-item-color); - stroke: var(--menu-item-color); @include menu-item; &.is-active { fill: var(--menu-item-active-color); - stroke: var(--menu-item-active-color); @include menu-item-active; } @@ -783,7 +772,6 @@ $namespace: vben; list-style: none; background: var(--menu-submenu-background-color); fill: var(--menu-item-color); - stroke: var(--menu-item-color); &.is-active { div[data-state='open'] > .#{$namespace}-sub-menu-content, @@ -794,7 +782,6 @@ $namespace: vben; cursor: pointer; background: var(--menu-submenu-active-background-color); fill: var(--menu-submenu-active-color); - stroke: var(--menu-submenu-active-color); } } } diff --git a/packages/@core/ui-kit/tabs-ui/src/components/tabs/tabs.vue b/packages/@core/ui-kit/tabs-ui/src/components/tabs/tabs.vue index db83b715..c10bad50 100644 --- a/packages/@core/ui-kit/tabs-ui/src/components/tabs/tabs.vue +++ b/packages/@core/ui-kit/tabs-ui/src/components/tabs/tabs.vue @@ -108,9 +108,6 @@ function scrollIntoView() {
- -