Skip to content

Commit a9fbde6

Browse files
authored
Merge pull request #157 from wpmudev/fix/FOR-5857
fix: Country dropdown layout is broken in Preview when Basic style is…
2 parents 6011c23 + 3810db1 commit a9fbde6

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.changeset/happy-cars-lay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"forminator-ui": patch
3+
---
4+
5+
fix: country dropdown layout is broken in preview

library/scss/forminator-base.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ $form-theme: basic;
4646
@import "src/settings/components/phone";
4747
@import "src/settings/components/slider";
4848
@import "src/settings/components/calendar";
49+
@import "src/settings/components/select2";
4950

5051
// Components
5152
@include component-repeater(#{$form-type}, #{$form-theme});
@@ -72,4 +73,5 @@ $form-theme: basic;
7273
@include component-phone(#{$form-type}, #{$form-theme});
7374
@include component-slider(#{$form-type}, #{$form-theme});
7475
@include component-calendar(#{$form-type}, #{$form-theme});
76+
@include component-select2(#{$form-type}, #{$form-theme});
7577

library/scss/src/settings/components/_multiselect.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
overflow-y: auto;
1313
}
1414
display: block;
15-
@if ('default' == $form-theme) {
15+
@if ('default' == $form-theme) or ('basic' == $form-theme) {
1616
padding: #{(calc(map-get($dropdown, padding) / 2)) - map-get($border-width, default)};
1717
border-width: map-get($border-width, default);
1818
border-style: map-get($border-style, default);

0 commit comments

Comments
 (0)