ant-design / ant-design/pro-components

🐛[BUG]移动端点击展开的抽屉菜单,左上角 title 和 logo 显示异常

Open
#7,505 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 描述
移动端点击展开的抽屉菜单,左上角 title 和 logo 显示异常,暗黑模式title颜色未更新成白色

### 📷 复现步骤

```
//ProLayout设置这两个属性可复现

menuHeaderRender={(logo,title)=> <>{logo}{title}}
navTheme='realDark'

```

### 🏞 期望结果
title 和 logo 正常显示

### © 版本信息

- ProComponents 版本: [2.6.11]
- 浏览器环境 Google Chrome 115.0.5790.171
- 开发环境 [windows 10]

### 🚑 其他信息

####v2.6.6版本开始出现
![ae5c20016d7aba578db777136500564](https://github.com/ant-design/pro-components/assets/29728952/13fde76d-b128-4e94-9611-4e8e99285ed8)
![3fcc3450d537fad254cf2538fcec041](https://github.com/ant-design/pro-components/assets/29728952/f29fe14b-cfee-4604-b6e0-10b3ced230f0)

####期望结果
![a049dcb7c35b694538aa876fc7b00d4](https://github.com/ant-design/pro-components/assets/29728952/482b7677-bdf1-4909-ac53-5522fc0f8d76)

Contributor guide

Open the contributing guide

Research direction

Start at the ProLayout entry point and reproduce the issue using the supplied menuHeaderRender and navTheme='realDark' settings on mobile. Done means the drawer shows the title and logo normally, with the title rendered white in dark mode; no file or test is named in the issue.

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.