ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.23k stars 1.35k forks source link

🐛[BUG]pro-layout中token下sider中的colorBgMenuItemHover无效 #7107

Closed daifuyang closed 1 year ago

daifuyang commented 1 year ago

🐛 bug 描述

通过修改token下的sider下的colorBgMenuItemHover,但是选择的背景色没有改变 image

检查了下仓库的代码,发现这个属性实在header下,是否是文档错误?感觉这块不是很优雅 image

📷 复现步骤

https://codesandbox.io/s/ji-chu-shi-yong-forked-dfy81d?file=/App.tsx 文字已经生效,但是背景色无效

🏞 期望结果

背景色变成修改的值

💻 复现代码

© 版本信息

🚑 其他信息

chenshuai2144 commented 1 year ago

antd@5 顶部菜单是没有背景颜色的,我来找antd py一下

ONLY-yours commented 1 year ago

mark

natashaamin commented 1 year ago

mark

by0126 commented 1 year ago

解决了吗?我现在也是这样,修改header的菜单hover背景色不生效

Caladog commented 1 year ago

我也发现 header 的二级菜单是没有样式可以设置的,默认跟一级菜单一样,如果header背景设置成深色,二级菜单会看不清。

chenshuai2144 commented 1 year ago

更新到最新的 antd 和 procomponent

Chill7773 commented 1 year ago

还是不生效哈

更新到最新的 antd 和 procomponent

Caladog commented 1 year ago

我更新到"antd": "^5.5.1","@ant-design/pro-layout": "^7.15.2", 还是不行。

xliez commented 1 year ago

+1 antd: 5.7.0 + pro-components: 2.6.5 版本依旧不生效

复现:https://codesandbox.io/s/tong-guo-token-xiu-gai-yang-shi-forked-wwkngl?file=/App.tsx

@chenshuai2144

daifuyang commented 1 year ago

image 确实还有问题