ant-design / ant-design/pro-components

🐛[BUG] 通过token修改样式 展开的子菜单背景色不生效

Open
#8,522 0 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 描述

展开的菜单背景色是白色,没有按照预期设定的token颜色

### 📷 复现步骤

https://pro-components.antdigital.dev/~demos/packages-layout-src-components-layout-tab-api-demo-theme

### 🏞 期望结果

背景色是设定的颜色

### 💻 复现代码

https://pro-components.antdigital.dev/~demos/packages-layout-src-components-layout-tab-api-demo-theme

### © 版本信息

- ProComponents 版本: 官方示例网站
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

### 🚑 其他信息

![image](https://github.com/ant-design/pro-components/assets/6050235/fc0139d3-b505-4a74-bc94-d4f32a803f3f)

Contributor guide

Open the contributing guide

Research direction

Start with the linked theme demo and reproduce the expanded submenu background-color issue using the configured design token. Trace the Layout or tab-menu styling from that demo to identify where the submenu background is determined. Done means the expanded submenu uses the configured token color rather than white.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.