forked from primer/view_components
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat[#50499]: Add back button and breadcrumbs to page header (#45)
* feat[#50499]: Add back button and breadcrumbs to page header * chore[#50499]: Set renders_one BackButton attributes size and icon defaults * fix[#50499]: Remove I18n from PageHeader * fix[#50499]: Rename CSS class PageHeader-back_button to PageHeader-backButton * fix[#50499]: Fix RuboCop errors and warnings * fix[#50499]: Vertically center back button * fix[#50499]: Add aria-label in preview for with_back_button * test[#50499]: Add renders_back_button test * test[#50499]: Add renders_breadcrumbs test * fix[#50499]: Fix class names in PageHeader * chore[#50499]: Remove show_breadcrumb option in PageHeader.with_breadcrumbs * chore[#50499]: Remove manually added static classes * feat[#50499]: Support **system_arguments in PageHeader breadcrumbs slot * fix[#50499]: Readd @Label With actions in PageHeaderPreview * fix[#50499]: Fix spaces * fix[#50499]: Change PageHeader align-items to baseline * fix[#50499]: Add size and icon options and use fetch_or_fallback * chore[#50499]: Add params options in preview for PageHeader with back button * chore[#50499]: Add params information in back_button slot * chore[#50499]: Add params options in preview for PageHeader with breadcrumbs * chore[#50499]: Add anchor_tag_string helper function * fix[#50499]: Fix back button and title wrapping on small screen * chore[#50499]: Remove long testing title from preview * chore[#50499]: Remove back button in breadcrumb preview * chore[#50499]: Sort PageHeader with-alternatives alphabetically * chore[#50499]: Add toggles for back button and breadcrumbs in playground * chore[#50499]: Add back button size parameter to playground * Center back button in any cases. Unfortunately, there is a two pixel misalignment which we have to cancel out. This is most likely coming from the arrow being thinner than the font --------- Co-authored-by: Henriette Darge <[email protected]>
- Loading branch information
1 parent
f4903ea
commit ac9f727
Showing
6 changed files
with
172 additions
and
9 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@openproject/primer-view-components': minor | ||
--- | ||
|
||
Add back button and breadcrumbs support to PageHeader |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<%= render Primer::BaseComponent.new(**@system_arguments) do %> | ||
<%= title %> | ||
<%= breadcrumbs %> | ||
<div class="PageHeader-titleBar"> | ||
<%= back_button %> | ||
<%= title %> | ||
<%= actions %> | ||
</div> | ||
<%= description %> | ||
<%= actions %> | ||
<% end %> |
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