Skip to content

Commit

Permalink
use control border on btn in group
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank committed Sep 11, 2023
1 parent 426c230 commit e01c3d1
Showing 1 changed file with 10 additions and 0 deletions.
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 e01c3d1

Please sign in to comment.