Skip to content

Commit

Permalink
fix: add menu-item-content-children class name (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanVor authored Jul 24, 2023
1 parent 4c900f4 commit 4519ea5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/components/DropdownMenu/DropdownMenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ $block: '.#{variables.$ns}dropdown-menu';
gap: 16px;
}

&__menu-item-content-children {
flex: auto;
}

&__sub-menu {
position: relative;

Expand Down
4 changes: 3 additions & 1 deletion src/components/DropdownMenu/DropdownMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ export const DropdownMenuItem = <T,>({
onClick={handleMenuItemClick}
>
<div className={cnDropdownMenu('menu-item-content')}>
<div>{text || children}</div>
<div className={cnDropdownMenu('menu-item-content-children')}>
{text || children}
</div>
{hasSubmenu && <Icon data={ChevronRight} size={10} />}
</div>
</Menu.Item>
Expand Down

0 comments on commit 4519ea5

Please sign in to comment.