Skip to content

Commit

Permalink
Improve RiverBreakout spacing (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielguillan authored Sep 26, 2024
1 parent d10dc53 commit 0270f06
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-rocks-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/react-brand': patch
---

Improves spacing of RiverBreakout content
15 changes: 10 additions & 5 deletions packages/react/src/river/river-shared.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@
width: 1px;
}

.RiverBreakout .River__call-to-action {
margin-block-end: var(--base-size-40);
}

@media screen and (min-width: 48rem) {
.RiverBreakout .River__content {
display: grid;
Expand All @@ -174,20 +178,21 @@
'text trailingComponent'
'cta trailingComponent';
grid-template-columns: 5fr 3fr;
grid-auto-rows: auto 1fr;
}

.RiverBreakout .River__text {
grid-area: text;
}

.RiverBreakout .River__call-to-action {
grid-area: cta;
margin-block-start: 0;
margin-block: 0;
}

.RiverBreakout .River__trailingComponent {
grid-area: trailingComponent;
justify-self: end;
margin-block-start: 0;
}

.RiverBreakout .River__text {
grid-area: text;
}
}

0 comments on commit 0270f06

Please sign in to comment.