Refactoring

This commit is contained in:
Julia Radzhabova 2021-07-09 13:24:24 +03:00
parent 1ca9c3d6a1
commit 54e23daafd
4 changed files with 5 additions and 7 deletions

View file

@ -206,7 +206,7 @@ define([
},
focus: function() {
this.cmpEl && this.cmpEl.focus();
$('button', this.cmpEl).focus();
},
onAfterKeydownMenu: function(e) {

View file

@ -71,8 +71,6 @@ Common.UI.FocusManager = new(function() {
item.selector = '.radiobox';
else if (field instanceof Common.UI.TreeView)
item.selector = '.treeview';
else if (field instanceof Common.UI.ColorButton)
item.selector = '.btn-group';
else if (field instanceof Common.UI.Button)
item.selector = 'button';
else

View file

@ -679,11 +679,9 @@
.caret {
}
}
}
.btn-group {
&:focus, &:active, &.open {
.btn-color:not(.disabled) {
&:not(.disabled) {
&:focus, .btn-group.open &, .btn-group:active & {
border-color: @border-control-focus-ie;
border-color: @border-control-focus;
}

View file

@ -379,6 +379,7 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
additionalAlign: this.menuAddAlign,
color: 'auto',
auto: true,
cls: 'move-focus',
takeFocusOnClose: true
});
this.colorsBorder = this.btnBorderColor.getPicker();
@ -423,6 +424,7 @@ define([ 'text!documenteditor/main/app/template/ParagraphSettingsAdvanced.tem
parentEl: $('#paragraphadv-back-color-btn'),
transparent: true,
additionalAlign: this.menuAddAlign,
cls: 'move-focus',
takeFocusOnClose: true
});
this.colorsBack = this.btnBackColor.getPicker();