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

页面中用了Menu组件之后,sider中的Memu样式会被覆盖 #8943

Closed
czlin opened this issue Dec 24, 2024 · 1 comment
Closed

页面中用了Menu组件之后,sider中的Memu样式会被覆盖 #8943

czlin opened this issue Dec 24, 2024 · 1 comment

Comments

@czlin
Copy link

czlin commented Dec 24, 2024

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

image
这是正常的页面,左边的sider和头部的样式是通过token指定的

token={{
            header: {
              // colorBgMenuItemSelected: 'rgba(0,0,0,0.04)',
              colorBgHeader: '#001529',
              colorTextMenu: 'rgba(255, 255, 255, 0.65)',
              colorTextMenuSelected: '#fff',
              colorBgMenuItemSelected: '#1677ff',
              colorTextMenuActive: '#fff',
              colorTextRightActionsItem: '#fff',
              heightLayoutHeader: 48,
            },
            sider: {
              colorMenuBackground: '#001529',
              colorTextMenu: 'rgba(255, 255, 255, 0.65)',
              colorTextMenuSelected: '#fff',
              colorTextMenuItemHover: '#fff',
              colorBgMenuItemSelected: '#1677ff',
              colorBgMenuItemCollapsedElevated: '#fff',
            },
          }}

image
页面中用了Menu组件之后,sider的菜单栏样式会被覆盖

📷 复现步骤

🏞 期望结果

请求大佬,有什么好的解决方案

💻 复现代码

© 版本信息

  • ProComponents 版本: 2.8.2
  • umi 版本
  • 浏览器环境 chrome 130.0.6723.117
  • 开发环境 mac OS

🚑 其他信息

Copy link

当前 Issue 未检测到标题,请规范填写,谢谢!

The title of the current issue is not detected, please fill in according to the specifications, thank you!

@czlin czlin changed the title 🐛[BUG] 页面中用了Menu组件之后,sider中的Memu样式会被覆盖 Dec 24, 2024
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

1 participant