Skip to content

Commit 766c1ce

Browse files
author
Olga Lytvynenko
committed
MAGETWO-38962: Content accessibility is missed for "create Custom Option" section on "create Product" Backend page
1 parent 0834cd7 commit 766c1ce

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/code/Magento/Catalog/view/adminhtml/web/js/custom-options.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,12 @@ define([
386386
var priceType = $('#' + this.options.fieldId + '_' + data.id + '_select_' + data.select_id + '_price_type');
387387
priceType.val(data.price_type).attr('data-store-label', data.price_type);
388388
}
389+
389390
this._bindUseDefault(this.options.fieldId + '_' + data.id + '_select_' + data.select_id, data);
390391
this.refreshSortableElements();
391392
this.options.selectionItemCount[data.id] = parseInt(this.options.selectionItemCount[data.id], 10) + 1;
393+
394+
$('#' + this.options.fieldId + '_' + data.id + '_select_' + data.select_id + '_title').focus();
392395
},
393396

394397
/**

app/design/adminhtml/Magento/backend/web/css/styles-old.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,7 @@
795795
height: 33px;
796796
&:focus {
797797
border-color: #007bdb;
798+
box-shadow: none;
798799
outline: 0;
799800
}
800801
}
@@ -874,6 +875,7 @@
874875
transition: all 0.1s ease-in;
875876
&:focus {
876877
border-color: #007bdb;
878+
box-shadow: none;
877879
outline: 0;
878880
}
879881
&[disabled] {

0 commit comments

Comments
 (0)