Skip to content

Commit

Permalink
fix: add menu-item-content-children class name (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanVor authored Jul 24, 2023
1 parent eca3534 commit 4c53cdb
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;
}

&__menu-item-chevron {
transform: rotate(-90deg);
}
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 @@ -100,7 +100,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={Chevron}
Expand Down

0 comments on commit 4c53cdb

Please sign in to comment.