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

Menu component has varying height with wrapping content #7000

Closed
1 task done
PaulSumner-Sage opened this issue Oct 4, 2024 · 2 comments · Fixed by #7017
Closed
1 task done

Menu component has varying height with wrapping content #7000

PaulSumner-Sage opened this issue Oct 4, 2024 · 2 comments · Fixed by #7017

Comments

@PaulSumner-Sage
Copy link
Contributor

Description

When a Menu has wrapping / different sized menu items on a smaller viewport the menu bar itself ends up with different heights. This can be seen on the default storyboard when the screen is made smaller

Reproduction

https://carbon.sage.com/?path=/docs/menu--docs#default

Steps to reproduce

Can be viewed in default Storyboard on a smaller viewport
https://carbon.sage.com/?path=/docs/menu--docs#default

JIRA ticket numbers (Sage only)

SBS-110640

Suggested solution

No response

Carbon version

142.0.0

Design tokens version

No response

Relevant browsers

Chrome

Relevant OSs

MacOS

Additional context

No response

Confidentiality

  • I confirm there is no confidential or commercially sensitive information included.
@PaulSumner-Sage PaulSumner-Sage added Bug triage Triage Required labels Oct 4, 2024
@edleeks87
Copy link
Contributor

FE-6798

@edleeks87 edleeks87 added On Backlog and removed triage Triage Required labels Oct 8, 2024
edleeks87 added a commit that referenced this issue Oct 14, 2024
…ht if any wrap to new lines

Ensures that `MenuItem`s flex so that they all have the same height if any wrap their content to new
lines at smaller screen resolutions. Ensures no additonal padding is set on `MenuItem` children of
`MenuFullscreen`.

BREAKING CHANGE: `Menu` no longer supports `height`, `minHeight`, `maxHeight`, `size`,
`overflowY` and `display` props. `MenuItem` no longer supports `height`, `minHeight`,
`maxHeight`, `size`, `verticalAlign`, `overflow`, `overflowY`, `overflowX` and
`display` props.

fix #6934, fix #7000
edleeks87 added a commit that referenced this issue Oct 14, 2024
…ht if any wrap to new lines

Ensures that `MenuItem`s flex so that they all have the same height if any wrap their content to new
lines at smaller screen resolutions. Ensures no additional padding is set on `MenuItem` children of
`MenuFullscreen`.

BREAKING CHANGE: `Menu` no longer supports `height`, `minHeight`, `maxHeight`, `size`,
`overflowY` and `display` props. `MenuItem` no longer supports `height`, `minHeight`,
`maxHeight`, `size`, `verticalAlign`, `overflow`, `overflowY`, `overflowX` and
`display` props.

fix #6934, fix #7000
@edleeks87 edleeks87 mentioned this issue Oct 14, 2024
11 tasks
edleeks87 added a commit that referenced this issue Oct 16, 2024
…ht if any wrap to new lines

Ensures that `MenuItem`s flex so that they all have the same height if any wrap their content to new
lines at smaller screen resolutions. Ensures no additional padding is set on `MenuItem` children of
`MenuFullscreen`.

BREAKING CHANGE: `Menu` no longer supports `height`, `minHeight`, `maxHeight`, `size`,
`overflowY` and `display` props. `MenuItem` no longer supports `height`, `minHeight`,
`maxHeight`, `size`, `verticalAlign`, `overflow`, `overflowY`, `overflowX` and
`display` props.

fix #6934, fix #7000
edleeks87 added a commit that referenced this issue Oct 18, 2024
…ht if any wrap to new lines

Ensures that `MenuItem`s flex so that they all have the same height if any wrap their content to new
lines at smaller screen resolutions. Ensures no additional padding is set on `MenuItem` children of
`MenuFullscreen`.

BREAKING CHANGE: `Menu` no longer supports `height`, `minHeight`, `maxHeight`, `size`,
`overflowY` and `display` props. `MenuItem` no longer supports `height`, `minHeight`,
`maxHeight`, `size`, `verticalAlign`, `overflow`, `overflowY`, `overflowX` and
`display` props.

fix #6934, fix #7000
carbonci pushed a commit that referenced this issue Oct 21, 2024
## [144.0.0](v143.2.5...v144.0.0) (2024-10-21)

### ⚠ BREAKING CHANGES

* **menu, menu-item:** `Menu` no longer supports `height`, `minHeight`, `maxHeight`, `size`,
`overflowY` and `display` props. `MenuItem` no longer supports `height`, `minHeight`,
`maxHeight`, `size`, `verticalAlign`, `overflow`, `overflowY`, `overflowX` and
`display` props.

### Bug Fixes

* **menu-item:** ensure that it does not render children when `submenu` is an empty string ([975d5c6](975d5c6)), closes [#7010](#7010)
* **menu, menu-item:** ensure that menu-items all remain the same height if any wrap to new lines ([501337c](501337c)), closes [#6934](#6934) [#7000](#7000)
@carbonci
Copy link
Collaborator

🎉 This issue has been resolved in version 144.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants