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

fix: add menu-item-content-children class name #839

Merged
merged 1 commit into from
Jul 24, 2023
Merged

Conversation

GermanVor
Copy link
Contributor

No description provided.

@GermanVor GermanVor requested a review from axtk as a code owner July 24, 2023 13:19
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@@ -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')}>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without this class name div will have width equal text || children width.
this is unacceptable if we want all items in DropDown have same width.

for exemple

image

@GermanVor GermanVor merged commit 4519ea5 into main Jul 24, 2023
3 checks passed
@GermanVor GermanVor deleted the dropdown-menu-fix-v5 branch July 24, 2023 13:39
zamkovskaya pushed a commit to zamkovskaya/uikit that referenced this pull request Aug 7, 2023
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

Successfully merging this pull request may close these issues.

3 participants