File tree Expand file tree Collapse file tree
app/components/primer/open_project Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @openproject/primer-view-components " : patch
3+ ---
4+
5+ [ 65869] Add an option in the page header description that allows all links in it to be displayed with or without an underline.
Original file line number Diff line number Diff line change 22
33.PageHeader {
44 display : flex;
5- padding-bottom : var (--stack-padding-condensed );
6- margin-bottom : var (--stack-gap-normal );
5+ padding-bottom : var (--base-size-8 );
6+ margin-bottom : var (--base-size-16 );
77 border-bottom : var (--borderWidth-thin ) solid var (--borderColor-muted );
88 flex-flow : column;
99}
4747 flex : 1 100 % ;
4848}
4949
50- .PageHeader-description a {
50+ .PageHeader-description--underlined-links a {
5151 /* Ensure the accessibility is met, given that the description is written in light grey */
5252 text-decoration : underline;
5353}
7676}
7777
7878.PageHeader-leadingAction {
79- margin-top : 2 px ; /* to center align with label */
79+ margin-top : var ( --base-size-2 ) ; /* to center align with label */
8080 margin-right : var (--base-size-4 );
8181}
8282
Original file line number Diff line number Diff line change @@ -45,11 +45,15 @@ class PageHeader < Primer::Component
4545 }
4646
4747 # Optional description below the title row
48- renders_one :description , lambda { |**system_arguments |
48+ renders_one :description , lambda { |underlined_links : true , **system_arguments |
4949 deny_tag_argument ( **system_arguments )
5050
5151 system_arguments [ :tag ] = :div
52- system_arguments [ :classes ] = class_names ( system_arguments [ :classes ] , "PageHeader-description" )
52+ system_arguments [ :classes ] = class_names (
53+ system_arguments [ :classes ] ,
54+ "PageHeader-description" ,
55+ ( "PageHeader-description--underlined-links" if underlined_links )
56+ )
5357
5458 Primer ::BaseComponent . new ( **system_arguments )
5559 }
You can’t perform that action at this time.
0 commit comments