Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛[BUG] Prolayout Sider Token 在 menu 类型为 group下时,无法设置一级标题颜色 #8976

Open
Farley-Chen opened this issue Jan 15, 2025 · 0 comments

Comments

@Farley-Chen
Copy link

Farley-Chen commented Jan 15, 2025

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🐛 bug 描述

在Umi中,使用默认的Prolayout时,如果把menu类型设置为group,无法设置一级标题的颜色

📷 复现步骤

Prolayout中将 menu 设置为 type: group,将无法设置一级标题颜色(具体设置见代码部分)

Image

🏞 期望结果

menu 类型为 group时,应该允许设置一级标题颜色

💻 复现代码

{
    menu: {
      locale: false,
      type: 'group',
    },
    token: {
      sider: {
        colorMenuBackground: '#242424',
        colorTextMenuTitle: '#FFFFFF',
        colorMenuItemDivider: '#383838',

        colorTextMenu: '#FFFFFF',
        colorTextMenuSelected: '#FFFFFF',
        colorTextMenuActive: '#FFFFFF',
        colorTextMenuItemHover: '#FFFFFF',

        colorBgMenuItemActive: '#0052D9',
        colorBgMenuItemHover: '#0052D9',
        colorBgMenuItemSelected: '#0052D9',
      },
      pageContainer: {
        colorBgPageContainer: '#F3F3F3',
      },
    }
  }

© 版本信息

  • ProComponents 版本: 2.4.4
  • umi 版本 4.3.36
  • 浏览器环境 edge
  • 开发环境 Linux mint

🚑 其他信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant