-
Notifications
You must be signed in to change notification settings - Fork 8
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!: Update behaviour of Header and related components #1607
Draft
VincentSmedinga
wants to merge
58
commits into
develop
Choose a base branch
from
poc/DES-884-single-line-header
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
b8bac3d
Simplify rigourously
VincentSmedinga e329c9a
Change menu prop from ReactNode to callback function
VincentSmedinga 359edc6
Implement wrapping in two halves
VincentSmedinga 285a869
Wrap Header and Footer stories in Screen
VincentSmedinga e4f6df5
Introduce component for buttons in page menu
VincentSmedinga 73e88f9
Use Page Menu in Header (incorrectly for now)
VincentSmedinga 29bb49f
Allow icon in Page Menu Button
VincentSmedinga 834e72c
Allow Grid to render a different HTML element
VincentSmedinga c6efcef
Make Header render its own Grid
VincentSmedinga e6e5cf2
Make Leader render its children
VincentSmedinga 1a28c0c
Include menu button in Page Menu
VincentSmedinga 7fa2903
Rename `links` prop to `menu`
VincentSmedinga 0615ff6
Update homepage example
VincentSmedinga 9f69f31
Make Grid a decorator in Mega Menu stories for easier reuse
VincentSmedinga c8f8f91
Simplify white space in Header
VincentSmedinga ca7fa54
Allow logo to grow a bit in wide windows
VincentSmedinga 6432adc
Hide secondary page menu items in narrow windows
VincentSmedinga 5f547ec
Improve spacing in page menu
VincentSmedinga 63b43c7
Merge branch 'develop' into poc/DES-884-single-line-header
VincentSmedinga 9e9fd4b
Remove obsolete class name
VincentSmedinga f2f2796
Prefer class name over pseudo-selector
VincentSmedinga 30fcd0d
Merge branch 'develop' into poc/DES-884-single-line-header
VincentSmedinga 4664490
Use Text Level 5 for application name
VincentSmedinga 89a8b10
Remove prop that prevents a Page Menu to wrap
VincentSmedinga b1f2dd6
Revert Header rendering its own Grid
VincentSmedinga 8220373
Extract Item component for Page Menu
VincentSmedinga d131cee
Implement end-alignment on Page Menu alone
VincentSmedinga bfc1d5a
Remove beta warnings from Header, Mega Menu and Page Menu
VincentSmedinga bd11475
WIP Docs
VincentSmedinga 54957de
Fix things
VincentSmedinga 0798488
Use `any` to type ref for polymorphic components
VincentSmedinga f03164d
Finetune space lengths
VincentSmedinga a855c31
Fix gap token name for page menu item
VincentSmedinga 41f6441
Rename mixin
VincentSmedinga aa53f36
Decrease line height for application name Heading
VincentSmedinga 91c22ae
Revert "Make Grid a decorator in Mega Menu stories for easier reuse"
VincentSmedinga 38d63cb
Merge branch 'develop' into poc/DES-884-single-line-header
VincentSmedinga 12be155
Make Header render a header element
VincentSmedinga a34fc1b
Make Mega Menu render a nav element
VincentSmedinga f705b23
Let Grid and Grid Cell render any structural tag
VincentSmedinga a669021
Fix type import
VincentSmedinga 8a64d5b
Simplify mega menu stories
VincentSmedinga 32b2069
Deprecate Mega Menu component
VincentSmedinga b62fd4c
Implement Mega Menu as pattern in Amsterdam home page
VincentSmedinga b379529
Merge branch 'develop' into poc/DES-884-single-line-header
VincentSmedinga 8ecf069
Fix empty class name
VincentSmedinga e6cdd94
Remove unnecessary keys from example
VincentSmedinga 9657743
Implement hack to wrap all main navigation in one nav element
alimpens 6891717
Finetune poc
alimpens 3e20118
Add padding
alimpens 5685c69
Add toggle button
alimpens 0101037
Break up menu in subcomponents
alimpens fbfd1c1
Remove unused state
alimpens 10511d5
Merge item and link
alimpens dd1c504
Move styling from inline to css
alimpens b5df56d
Cleanup, add MegaMenuSecondaryLinkList
alimpens 9d595cd
Add minimal version for headers without mega menu
alimpens a16e9af
Fix stories
alimpens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we try a container query to show just the crosses on narrow screens?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds interesting, but what would you want the container query to test that a ‘regular’ window width query can’t? Is it to consider the presence of an app title?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The header has a max width so it would make sense I suppose. You could use a
:has()
selector in combination with a container (or normal) query to hide the logo text. So probably not in this file but that defies the purpose of having isolated components, so targeting logo in the header CSS is wrong but needed? That's probably why it should be a pattern and not a component?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let’s do the narrow logo in a separate PR.