Skip to content

Commit

Permalink
Prevent rounded corners in the middle of a BorderBox
Browse files Browse the repository at this point in the history
  • Loading branch information
HDinger committed Mar 12, 2024
1 parent 53a3390 commit c3c60f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-pens-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/view-components": patch
---

Prevent rounded corners in the middle of a Primer::Beta::BorderBox
5 changes: 2 additions & 3 deletions app/components/primer/beta/border_box.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
border-bottom: var(--borderWidth-thin) solid var(--borderColor-default);

/* Ensures bottom-border doesn't poke out when .Box-body used without box-footer */
&:last-of-type {
&:last-child {
margin-bottom: calc(var(--borderWidth-thin) * -1);
border-bottom-right-radius: var(--borderRadius-medium);
border-bottom-left-radius: var(--borderRadius-medium);
Expand All @@ -106,8 +106,7 @@
border-top-width: var(--borderWidth-thin);

&:first-of-type {
border-top-left-radius: var(--borderRadius-medium);
border-top-right-radius: var(--borderRadius-medium);
border-top-width: 0;
}

&:last-of-type {
Expand Down

0 comments on commit c3c60f0

Please sign in to comment.