8000 feat(InputGroup): add support for DatePicker, DateRangePicker, TimePi… · coreui/coreui-pro@4165dfd · GitHub
[go: up one dir, main page]

Skip to content

Commit 4165dfd

Browse files
committed
feat(InputGroup): add support for DatePicker, DateRangePicker, TimePicker, and MultiSelect
1 parent 1e74eef commit 4165dfd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scss/forms/_input-group.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
}
2020

2121
// Bring the "active" form control to the top of surrounding elements
22+
> .date-picker.show,
23+
> .time-picker.show,
24+
> .form-multi-select.show,
2225
> .form-control:focus,
2326
> .form-select:focus,
2427
> .form-floating:focus-within {
@@ -98,6 +101,9 @@
98101
// stylelint-disable-next-line no-duplicate-selectors
99102
.input-group {
100103
&:not(.has-validation) {
104+
> .date-picker > .date-picker-input-group,
105+
> .time-picker > .time-picker-input-group,
106+
> .form-multi-select > .form-multi-select-input-group,
101107
> :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
102108
> .dropdown-toggle:nth-last-child(n + 3),
103109
> .form-floating:not(:last-child) > .form-control,
@@ -107,6 +113,9 @@
107113
}
108114

109115
&.has-validation {
116+
> .date-picker > .date-picker-input-group,
117+
> .time-picker > .time-picker-input-group,
118+
> .form-multi-select > .form-multi-select-input-group,
110119
> :nth-last-child(n + 3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
111120
> .dropdown-toggle:nth-last-child(n + 4),
112121
> .form-floating:nth-last-child(n + 3) > .form-control,
@@ -125,6 +134,9 @@
125134
@include border-start-radius(0);
126135
}
127136

137+
> .date-picker > .date-picker-input-group,
138+
> .time-picker > .time-picker-input-group,
139+
> .form-multi-select > .form-multi-select-input-group,
128140
> .form-floating:not(:first-child) > .form-control,
129141
> .form-floating:not(:first-child) > .form-select {
130142
@include border-start-radius(0);

0 commit comments

Comments
 (0)
0