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] umimax 自定义颜色 colorBgMenuItemCollapsedElevated 字段不生效 #12737

Open
bfzg opened this issue Oct 15, 2024 · 0 comments
Open

Comments

@bfzg
Copy link

bfzg commented Oct 15, 2024

在umi-max 中 app.tsx 修改layout token颜色,其中sider 的colorBgMenuItemCollapsedElevated配置不生效 我设置为#000但是任然显示白色。

export const layout = () => {
  return {
    menu: {
      locale: false,
    },
    token: {
      sider: {
        colorBgMenuItemCollapsedElevated: '#000000', //我理解的是收起后的下拉框背景色
      },
    },
  };
};

这是我的最小复现仓库 https://github.com/bfzg/umi-side-bug.git

复现步骤:

  1. 需要在配置一个子级路由 用来显示可下拉的菜单。
  2. 设置colorBgMenuItemCollapsedElevated后 折叠侧边栏,鼠标移入下拉菜单弹出的面板背景色没有改变。

Context

  • Umi Version v4.3.26:
  • Node Version v20.15.0:
  • Platform umi-max:
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