Skip to content

Commit e09d1a6

Browse files
authored
Merge pull request #158 from wpmudev/fix/FOR-5902
Fix/for 5902
2 parents a9fbde6 + 497f4ab commit e09d1a6

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

.changeset/rare-ghosts-occur.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: field and label description issue in material design

library/js/input-material.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
if ( description.length ) {
4444
const descriptionHeight = description.outerHeight();
4545
const labelHeight = label.outerHeight();
46-
const translateY = descriptionHeight + labelHeight + 8; // 8px margin
46+
const translateY = descriptionHeight + labelHeight + 16; // 16px margin
4747
label.css( '--forminator-floating-label-translate', translateY + 'px' );
4848
}
4949

library/scss/src/settings/components/_label-floating.scss

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
// use css variable or default 30px
1616
transform: translateY(var(--forminator-floating-label-translate, 30px));
1717

18-
+ .forminator-input--wrap,
19-
+ .forminator-input-with-icon,
20-
+ .forminator-input-with-phone,
21-
+ .forminator-input-with-suffix {
18+
~ .forminator-input--wrap,
19+
~ .forminator-input-with-icon,
20+
~ .forminator-input-with-phone,
21+
~ .forminator-input-with-suffix {
2222

2323
.forminator-input {
2424

@@ -44,7 +44,7 @@
4444
}
4545
}
4646

47-
+ .forminator-input-with-phone .iti__selected-dial-code {
47+
~ .forminator-input-with-phone .iti__selected-dial-code {
4848
@include opacity(0);
4949
}
5050

@@ -70,10 +70,10 @@
7070
.forminator-floating--input {
7171
transform: translateY(0);
7272

73-
+ .forminator-input--wrap,
74-
+ .forminator-input-with-icon,
75-
+ .forminator-input-with-phone,
76-
+ .forminator-input-with-suffix {
73+
~ .forminator-input--wrap,
74+
~ .forminator-input-with-icon,
75+
~ .forminator-input-with-phone,
76+
~ .forminator-input-with-suffix {
7777

7878
.forminator-input {
7979

@@ -99,7 +99,7 @@
9999
}
100100
}
101101

102-
+ .forminator-input-with-phone .iti__selected-dial-code {
102+
~ .forminator-input-with-phone .iti__selected-dial-code {
103103
@include opacity(1);
104104
}
105105
}
@@ -133,7 +133,7 @@
133133
padding: map-get($input, padding);
134134
transform: translateY(var(--forminator-floating-label-translate, 0));
135135

136-
+ .forminator-textarea--wrap {
136+
~ .forminator-textarea--wrap {
137137

138138
.forminator-textarea {
139139

@@ -166,7 +166,7 @@
166166
.forminator-floating--textarea {
167167
padding-top: map-get($input, padding) !important;
168168

169-
+ .forminator-textarea--wrap {
169+
~ .forminator-textarea--wrap {
170170

171171
.forminator-textarea {
172172

0 commit comments

Comments
 (0)