Skip to content

Commit

Permalink
Update Subhead actions (#1690)
Browse files Browse the repository at this point in the history
* Right align .Subhead-actions

* Create dull-chefs-cover.md

* Increase spacing when description follows actions
  • Loading branch information
simurai committed Oct 26, 2021
1 parent b7fd01d commit af5a3ae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-chefs-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Update `Subhead` actions
6 changes: 6 additions & 0 deletions src/subhead/subhead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
margin-bottom: $spacer-3;
border-bottom: $border-width $border-style var(--color-border-muted);
flex-flow: row wrap;
justify-content: flex-end; // Keep actions right aligned.
}

// Modifier class to give a lot of breathing room between sections of content.
Expand Down Expand Up @@ -34,6 +35,11 @@

// Add 1 or 2 buttons to the right of the heading
.Subhead-actions {
margin: $spacer-1 0 $spacer-1 $spacer-1;
align-self: center;
justify-content: flex-end;

+ .Subhead-description {
margin-top: $spacer-1;
}
}

0 comments on commit af5a3ae

Please sign in to comment.