Skip to content

Commit

Permalink
fix(field): solve wrong btn spacing and input/select border radius (#141
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mlmoravek authored Sep 4, 2024
1 parent 5cc415a commit fff0a9f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/assets/scss/components/_field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ $input-field-btn-border-color: $input-border-color !default;
.input-group {
flex-shrink: 0;

> .btn {
--#{$prefix}btn-spacer: 0;
}

// prevent nested components
> *:not(.dropdown-menu) {
// remove margin
Expand All @@ -129,8 +133,8 @@ $input-field-btn-border-color: $input-border-color !default;

// set border radii
& > button:first-child:not(:only-child),
& > input:first-child:not(:only-child):not(.form-check-input),
& > select:first-child:not(:only-child) {
& > .input:first-child:not(:only-child):not(.form-check-input),
& > .select:first-child:not(:only-child) {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
Expand Down

0 comments on commit fff0a9f

Please sign in to comment.