From 3efdd465447b3cae82ecd43b3be435dfa3a9b55f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Thu, 27 Jul 2023 21:56:05 +0800 Subject: [PATCH] fix(layout): fix colorBgMenuItemHover no work error close https://github.com/ant-design/pro-components/issues/7425 --- packages/layout/src/ProLayout.tsx | 2 +- packages/layout/src/components/TopNavHeader/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/layout/src/ProLayout.tsx b/packages/layout/src/ProLayout.tsx index b0bc5017aa2c..d991d9595fe0 100644 --- a/packages/layout/src/ProLayout.tsx +++ b/packages/layout/src/ProLayout.tsx @@ -787,7 +787,7 @@ const BaseProLayout: React.FC = (props) => { colorItemBgSelected: token?.layout?.sider?.colorBgMenuItemSelected || token?.colorBgTextHover, - colorItemBgActive: + itemActiveBg: token?.layout?.sider?.colorBgMenuItemHover || token?.colorBgTextHover, colorItemBgSelectedHorizontal: diff --git a/packages/layout/src/components/TopNavHeader/index.tsx b/packages/layout/src/components/TopNavHeader/index.tsx index d92dcb4dbc78..6b0425985e05 100644 --- a/packages/layout/src/components/TopNavHeader/index.tsx +++ b/packages/layout/src/components/TopNavHeader/index.tsx @@ -71,7 +71,7 @@ const TopNavHeader: React.FC = ( colorItemBgSelected: token?.layout?.header?.colorBgMenuItemSelected || token?.colorBgTextHover, - colorItemBgActive: + itemHoverBg: token?.layout?.header?.colorBgMenuItemHover || token?.colorBgTextHover, colorItemBgSelectedHorizontal: