-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input group scss refactoring #28309
Input group scss refactoring #28309
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please retarget the PR to the master branch.
And make sure tests pass ofc. |
Co-Authored-By: alexandreDavid <alexandre.David42@gmail.com>
line-height: $input-line-height-sm; | ||
@include border-radius($input-border-radius-sm); | ||
.input-group-sm { | ||
@include input-group-size($input-height-sm, $input-padding-y-sm, $input-padding-x-sm, $input-font-size-sm, $input-line-height-sm, $input-border-radius-sm); | ||
} | ||
|
||
.input-group-lg > .custom-select, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe:
.input-group-lg > .custom-select,
.input-group-sm > .custom-select {
padding-right: $custom-select-padding-x + $custom-select-indicator-padding;
}
->
@mixin input-group-size(...) {
...
> .custom-select {
padding-right: $custom-select-padding-x + $custom-select-indicator-padding;
}
}
?
@MartijnCuppens We already have a file for similar sizing mixin - mixin/_pagination.scss. Maybe we should choose to add the input group sizing mixin or remove the pagination' one for consistency. |
Closing this to consolidate #29885 |
Using a mixin for removing duplicated code.