Skip to content

Commit

Permalink
fix(layout): fix submenu popup text is center error
Browse files Browse the repository at this point in the history
close #7399
  • Loading branch information
chenshuai2144 committed Jul 19, 2023
1 parent f54ddae commit 7191501
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/layout/src/components/SiderMenu/style/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const genProLayoutBaseMenuStyle: GenerateStyle<ProLayoutBaseMenuToken> = (
const menuToken = mode.includes('horizontal')
? token.layout?.header
: token.layout?.sider;

console.log(token.antCls);
return {
[`${token.componentCls}`]: {
background: 'transparent',
Expand Down Expand Up @@ -145,12 +147,18 @@ const genProLayoutBaseMenuStyle: GenerateStyle<ProLayoutBaseMenuToken> = (
},
},
},

'&-group-divider': {
color: token.colorTextSecondary,
fontSize: 12,
lineHeight: 20,
},
},
[`${token.antCls}-menu-submenu${token.antCls}-menu-submenu-popup`]: {
[`${token.componentCls}-item-title`]: {
alignItems: 'flex-start',
},
},
};
};

Expand Down

0 comments on commit 7191501

Please sign in to comment.