ant-design / ant-design/pro-components

ProLayout 在top模式下,定制菜单背景色后,二级菜单能否按一级的展示,现在官网的例子里都是全白,文字看不清楚🐛[BUG]

Open
#8,637 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🐛 bug 描述

ProLayout 在top模式下,定制菜单背景色后,二级菜单能否按一级的展示,现在官网的例子里都是全白,文字看不清楚。
版本2.6.2是正常的,从2.6.2以后就变成这种看不清的情况
![image](https://github.com/user-attachments/assets/732fa954-3ec0-4273-ad2e-279f8c7cda72)

### 📷 复现步骤

官网的例子现在就是这种

### 🏞 期望结果

二级菜单按一级的颜色样式展示

### 💻 复现代码

### © 版本信息

- ProComponents 版本: [e.g. 2.7.12]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

### 🚑 其他信息
![image](https://github.com/user-attachments/assets/732fa954-3ec0-4273-ad2e-279f8c7cda72)

Contributor guide

Open the contributing guide

Research direction

Start at the ProLayout top-mode menu styling and compare the official example with the behavior in version 2.6.2 and later versions. Reproduce the customized first-level background color and confirm that the second-level menu uses the same readable color styling.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.