Skip to content

Commit

Permalink
fix: For the menu in dark horizontal mode, token: darkItemSelectedBg …
Browse files Browse the repository at this point in the history
…and darkItemSelectedColor is set, but does not take effect (ant-design#47463)

* fix: for For the menu in dark horizontal mode, token: darkItemSelectedBg and darkItemSelectedColor is set, but does not take effect

* use common tokens
  • Loading branch information
gandavarapurajasekhar authored and tanzhenyun committed Mar 29, 2024
1 parent d4e75e4 commit bee0831
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/menu/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,6 @@ export default (prefixCls: string, rootCls: string = prefixCls, injectStyle: boo
(token) => {
const {
colorBgElevated,
colorPrimary,
colorTextLightSolid,
controlHeightLG,
fontSize,
darkItemColor,
Expand Down Expand Up @@ -1001,8 +999,8 @@ export default (prefixCls: string, rootCls: string = prefixCls, injectStyle: boo
menuSubMenuBg: darkSubMenuItemBg,

// Horizontal
horizontalItemSelectedColor: colorTextLightSolid,
horizontalItemSelectedBg: colorPrimary,
horizontalItemSelectedColor: darkItemSelectedColor,
horizontalItemSelectedBg: darkItemSelectedBg,
});

return [
Expand Down

0 comments on commit bee0831

Please sign in to comment.