Skip to content

Commit eb641de

Browse files
committed
Merge remote-tracking branch 'magento2/platform-health' into platform-health
2 parents 4b76175 + 16cf35a commit eb641de

File tree

8 files changed

+1183
-790
lines changed

8 files changed

+1183
-790
lines changed

app/code/Magento/Catalog/view/frontend/web/product/view/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ define([
2525
if ($(element).hasClass('datetime-picker')) {
2626
element = $(element).parent();
2727

28-
if (element.parent().find('[generated=true].mage-error').length) {
28+
if (element.parent().find('.mage-error').length) {
2929
return;
3030
}
3131
}

app/code/Magento/Checkout/view/frontend/web/js/region-updater.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ define([
142142
this.options.form.validation.apply(this.options.form, _.compact(args));
143143

144144
// Clean up errors on region & zip fix
145-
$(this.options.regionInputId).removeClass('mage-error').parent().find('[generated]').remove();
146-
$(this.options.regionListId).removeClass('mage-error').parent().find('[generated]').remove();
147-
$(this.options.postcodeId).removeClass('mage-error').parent().find('[generated]').remove();
145+
$(this.options.regionInputId).removeClass('mage-error').parent().find('.mage-error').remove();
146+
$(this.options.regionListId).removeClass('mage-error').parent().find('.mage-error').remove();
147+
$(this.options.postcodeId).removeClass('mage-error').parent().find('.mage-error').remove();
148148
}
149149
},
150150

app/design/frontend/Magento/blank/Magento_CatalogSearch/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
&:last-child {
146146
position: relative;
147147

148-
div.mage-error[generated] {
148+
div.mage-error {
149149
left: 0;
150150
position: absolute;
151151
top: 32px;

app/design/frontend/Magento/blank/web/css/source/_forms.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
}
9494

9595
.field-error,
96-
div.mage-error[generated] {
96+
div.mage-error {
9797
margin-top: 7px;
9898
}
9999

app/design/frontend/Magento/luma/Magento_CatalogSearch/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
&:last-child {
161161
position: relative;
162162

163-
div.mage-error[generated] {
163+
div.mage-error {
164164
left: 0;
165165
position: absolute;
166166
top: 32px;

app/design/frontend/Magento/luma/web/css/source/_forms.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
}
110110

111111
.field-error,
112-
div.mage-error[generated] {
112+
div.mage-error {
113113
margin-top: 7px;
114114
}
115115

lib/web/css/source/lib/_forms.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
.lib-form-validation();
315315
}
316316

317-
div.mage-error[generated] {
317+
div.mage-error {
318318
.lib-form-validation-note();
319319
}
320320

0 commit comments

Comments
 (0)