Skip to content

Commit c8dba0b

Browse files
committed
fix tooltip designing issue
1 parent eebd15f commit c8dba0b

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

app/design/adminhtml/Magento/backend/web/css/source/forms/_fields.less

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,6 @@
3232
width: @field-size__l;
3333
}
3434

35-
.admin__field {
36-
&.field {
37-
&.field-basic_behavior.with-addon {
38-
.admin__field-control {
39-
position: relative;
40-
.mage-error {
41-
position: absolute;
42-
width: 100%;
43-
}
44-
}
45-
}
46-
}
47-
}
48-
4935
.abs-field-sizes {
5036
&.admin__field-x-small {
5137
> .admin__field-control {

lib/web/mage/validation.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,6 +1868,10 @@
18681868
//logic for control with tooltip
18691869
if (element.siblings('.tooltip').length) {
18701870
errorPlacement = element.siblings('.tooltip');
1871+
}
1872+
//logic for select with tooltip in after element
1873+
if (element.next().find('.tooltip').length) {
1874+
errorPlacement = element.next();
18711875
}
18721876
errorPlacement.after(error);
18731877
}

0 commit comments

Comments
 (0)