Skip to content

Commit

Permalink
Use control border on default btn in an input group (#2520)
Browse files Browse the repository at this point in the history
* use control border on btn in group

* Create mean-kangaroos-burn.md
  • Loading branch information
langermank authored Sep 12, 2023
1 parent 7c75006 commit 7e2622f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-kangaroos-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Use `control` border on default btn in an input group
10 changes: 10 additions & 0 deletions src/forms/input-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
border-bottom-right-radius: 0;
}

.input-group .form-control:first-child,
.input-group-button:first-child .btn:not(.btn-primary) {
border-color: var(--control-borderColor-rest, var(--color-border-default));
}

.input-group-button:first-child .btn {
// stylelint-disable-next-line primer/spacing
margin-right: -1px;
Expand All @@ -65,6 +70,11 @@
border-bottom-left-radius: 0;
}

.input-group .form-control:last-child,
.input-group-button:last-child .btn:not(.btn-primary) {
border-color: var(--control-borderColor-rest, var(--color-border-default));
}

.input-group-button:last-child .btn {
// stylelint-disable-next-line primer/spacing
margin-left: -1px;
Expand Down

0 comments on commit 7e2622f

Please sign in to comment.