forked from primer/view_components
-
Notifications
You must be signed in to change notification settings - Fork 1
[67724] Make breadcrumbs optional in page header component #376
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
Merged
Merged
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
2fdaf97
Change page header component and make the breadcumbs optional, show c…
bsatarnejad 7c51730
Create thin-terms-shout.md
bsatarnejad 4e4febc
Generating component snapshots
bsatarnejad ab5ba5e
update page header test
bsatarnejad c81040e
Generating component snapshots
bsatarnejad 1d11e23
add a test for rendering page header without breadcrumbs
bsatarnejad 1b87f77
add a test to check if the context bar exist only for mobile actions
bsatarnejad c6fad7f
when there is no breadcrumbs, show actions in the title bar
bsatarnejad 4134e0f
simplify rendering mobile actions
bsatarnejad 76a9f09
show contextbar in mobile mode
bsatarnejad 8dcc937
make the breadcrumbs required
bsatarnejad 33b6cf8
move breadcrumbs previews close to each other
bsatarnejad 13a6aa5
change test
bsatarnejad b6e95c2
move show_state out of private section
bsatarnejad f400cf5
add class for no breadcrumbs state before rendering the component
bsatarnejad e454ec4
add class for no breadcrumbs state while rendering the component
bsatarnejad 940061a
add class for no breadcrumbs state in rendering breadcrumbs
bsatarnejad d519a8b
handle showing and hiding context bar in page ehader
bsatarnejad 37d32c3
check for added class in the test
bsatarnejad 382be26
change the patch to minor in the changeset
bsatarnejad 9d76d51
remove default nil value for breadcrumbs
bsatarnejad 1641c66
fix style lint errors
bsatarnejad a8ddab6
add comment to the styles
bsatarnejad 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@openproject/primer-view-components": minor | ||
| --- | ||
|
|
||
| [67724] keep breadcrumbs slot required but allow nil/empty value |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -83,3 +83,18 @@ | |
| .PageHeader-parentLink { | ||
| flex: 1 1 auto; | ||
| } | ||
|
|
||
| .PageHeader--noBreadcrumb .PageHeader-contextBar { | ||
| display: none; | ||
| } | ||
|
|
||
| /* Keep it visible on smaller */ | ||
| @media (max-width: 543.98px) { | ||
| .PageHeader--noBreadcrumb .PageHeader-contextBar { | ||
| display: flex; | ||
| } | ||
| } | ||
|
|
||
| .PageHeader--noBreadcrumb .PageHeader-titleBar { | ||
| height: var(--control-small-size); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was probably done for the alignment with the menu button? Could you please add a comment for that? Otherwise, it is weird to understand later. |
||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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.