Skip to content

Commit 7b1adc4

Browse files
authored
fix(b-form-datepicker, b-form-timepicker): adjust scss to support input-groups (#5231)
Co-authored-by: Jacob Müller
1 parent 6354e6e commit 7b1adc4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/_custom-controls.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838
background-image: none;
3939
padding: 0;
4040

41+
@at-root {
42+
// Handle input-group padding overrides
43+
.input-group & {
44+
padding: 0;
45+
}
46+
}
47+
4148
@at-root {
4249
// Prevent the button/label from reversing order on in horizontal RTL mode
4350
[dir="rtl"] &,
@@ -78,6 +85,7 @@
7885
padding-left: 0.25rem;
7986
margin: 0;
8087
border: 0;
88+
font-size: inherit;
8189
@if $enable-pointer-cursor-for-buttons {
8290
cursor: pointer;
8391
}
@@ -93,6 +101,21 @@
93101
&.form-control-lg {
94102
min-height: calc(#{$input-height-lg} - #{$input-height-border});
95103
}
104+
105+
@at-root {
106+
// Handle input group sizing
107+
.input-group.input-group-sm & {
108+
min-height: calc(#{$input-height-sm} - #{$input-height-border});
109+
padding-top: $input-padding-y-sm;
110+
padding-bottom: $input-padding-y-sm
111+
}
112+
113+
.input-group.input-group-lg & {
114+
min-height: calc(#{$input-height-lg} - #{$input-height-border});
115+
padding-top: $input-padding-y-lg;
116+
padding-bottom: $input-padding-y-lg
117+
}
118+
}
96119
}
97120

98121
// Disabled and read-only styling

0 commit comments

Comments
 (0)