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

feat: Restore wrapping of items in Page Menu #1145

Merged
merged 5 commits into from
Mar 27, 2024

Conversation

VincentSmedinga
Copy link
Contributor

@VincentSmedinga VincentSmedinga commented Mar 25, 2024

The Page Menu was always meant to wrap its items if they don’t fit on a single line, but this behaviour got removed when interfering with the responsiveness of Header. The consequence that a larger Page Menu in the Footer now breaks the page layout was recently filed as a bug.

This PR fixes the Footer while keeping it unchanged in the Header through a prop. It also resolves a few instances of incorrect documentation.

A class name is to be added if the menu doesn’t wrap. Otherwise, consumers would need to add two classes to get the intended functionality. This introduces two variations in our CSS approach: the component adds a class if a prop is false, and the flex-wrap property is set on the base class unless that class is present.

@VincentSmedinga VincentSmedinga changed the title Restore wrapping in Page Menu feat: Restore wrapping in Page Menu Mar 25, 2024
@VincentSmedinga VincentSmedinga changed the title feat: Restore wrapping in Page Menu feat: Restore wrapping of items in Page Menu Mar 25, 2024
@github-actions github-actions bot temporarily deployed to demo-DES-631-page-menu-wrap March 26, 2024 15:32 Destroyed
@github-actions github-actions bot temporarily deployed to demo-DES-631-page-menu-wrap March 26, 2024 18:12 Destroyed
@github-actions github-actions bot temporarily deployed to demo-DES-631-page-menu-wrap March 27, 2024 12:49 Destroyed
@alimpens alimpens merged commit 4068e52 into develop Mar 27, 2024
5 checks passed
@alimpens alimpens deleted the feature/DES-631-page-menu-wrap branch March 27, 2024 13:13
@github-actions github-actions bot mentioned this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants