ant-design / ant-design/pro-components

🧐[问题] ProLayout 的左侧菜单栏怎么设置Token 颜色,

Open
#8,948 1 comment 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

components: {
Menu: {
itemSelectedBg:xx
...
},
},
设置并不生效,settings好像也只有"navTheme": "realDark",选中背景才会变色。如果想在theme弄,应该怎么设置呢
![image](https://github.com/user-attachments/assets/b923efea-c707-45dc-aa42-9d929e1c05b9)

Contributor guide

Open the contributing guide

Research direction

Start from the ProLayout menu configuration and the Menu token settings shown in the issue, then trace how settings and theme values reach the left navigation. Reproduce the configuration with itemSelectedBg and determine what change is needed for the selected background color to apply; done when the documented theme or settings configuration visibly changes it.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.