Skip to content

Commit

Permalink
fix(layout): support controlHeightLG token
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed May 4, 2023
1 parent 1d47c30 commit c2841b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/layout/src/ProLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,8 @@ const BaseProLayout: React.FC<ProLayoutProps> = (props) => {
colorItemBg: token?.layout?.sider?.colorMenuBackground || 'transparent',
colorSubItemBg: token?.layout?.sider?.colorMenuBackground || 'transparent',
radiusItem: 4,
controlHeightLG: token?.layout?.sider?.menuHeight || token?.controlHeightLG,

colorItemBgSelected:
token?.layout?.sider?.colorBgMenuItemSelected || token?.colorBgTextHover,
colorItemBgActive:
Expand Down Expand Up @@ -761,8 +763,6 @@ const BaseProLayout: React.FC<ProLayoutProps> = (props) => {
token?.layout?.header?.colorTextMenuActive || 'rgba(0, 0, 0, 0.85)',
colorItemTextSelected:
token?.layout?.header?.colorTextMenuSelected || 'rgba(0, 0, 0, 1)',
colorBgElevated:
token?.layout?.header?.colorBgMenuItemCollapsedElevated || '#fff',
},
},
}}
Expand Down
1 change: 1 addition & 0 deletions packages/provider/src/typing/layoutToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export type BaseLayoutDesignToken = {
colorTextCollapsedButtonHover: string;
colorTextCollapsedButton: string;
colorMenuBackground: string;
menuHeight: number;
colorBgMenuItemCollapsedElevated: string;
colorMenuItemDivider: string;
colorBgMenuItemHover: string;
Expand Down

0 comments on commit c2841b3

Please sign in to comment.