Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG] 混合模式下,colorBgMenuItemCollapsedElevated设置不生效 #8095

Open
hastings0714 opened this issue Jan 16, 2024 · 6 comments

Comments

@hastings0714
Copy link

hastings0714 commented Jan 16, 2024

🐛 bug 描述

image

混合模式下更改侧边栏背景色,当侧边栏收起后,鼠标滑过的浮层2级菜单背景色没有更改成功,仍然是白色。
colorBgMenuItemCollapsedElevated配置没有生效。

📷 复现步骤

sider配置

 sider: {
      colorMenuBackground: '#001529',
      colorBgMenuItemCollapsedElevated: '#001529',
      colorBgMenuItemActive: '#001529',
      colorTextMenuTitle: '#fff',
      colorTextMenu: '#fff',
      // colorTextMenuSecondary: '#fff',
      colorTextMenuActive: '#fff',
      colorTextMenuSelected: '#fff',
      colorTextMenuItemHover: '#fff',
      colorBgMenuItemHover: LIGHT_BLUE,
      colorBgMenuItemSelected: LIGHT_BLUE,
    }

🏞 期望结果

image

💻 复现代码

© 版本信息

  • ProComponents 版本: @ant-design/pro-components": "^2.6.46"
  • umi 版本 "@umijs/max": "^4.0.52"
  • 浏览器环境 edge 最新版
  • 开发环境 [e.g. mac OS]

🚑 其他信息

@siadou
Copy link

siadou commented Jan 31, 2024

@ordomalleus
Copy link

I have the same problem.
image
image

@fuzhoudong
Copy link

这玩意支持渐变(linear-gradient)吗

@wangsanshao
Copy link

一样的问题

@jiayechao
Copy link

用overrides.less覆盖吧

.ant-menu-submenu-popup.ant-menu-submenu {
  background: rgb(39,47,68);
  .ant-menu {
    background: transparent;
  }
}

@imamaad
Copy link

imamaad commented Sep 18, 2024

I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants