From 767c8652f3297544afccd289ae2cec8495190ba7 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 15 Oct 2020 19:28:45 +0300 Subject: [PATCH] Draw dark border for focused listview, treeview --- apps/common/main/resources/less/listview.less | 4 ++++ apps/common/main/resources/less/treeview.less | 4 ++++ apps/spreadsheeteditor/main/app/view/PivotSettings.js | 10 +++++----- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/apps/common/main/resources/less/listview.less b/apps/common/main/resources/less/listview.less index 8b5d93a8d..03251a941 100644 --- a/apps/common/main/resources/less/listview.less +++ b/apps/common/main/resources/less/listview.less @@ -21,6 +21,10 @@ } } + &:not(.no-focus):focus { + border-color: @gray-darker; + } + & > .item { // display: block; text-overflow: ellipsis; diff --git a/apps/common/main/resources/less/treeview.less b/apps/common/main/resources/less/treeview.less index 22bff45df..967ff8cc1 100644 --- a/apps/common/main/resources/less/treeview.less +++ b/apps/common/main/resources/less/treeview.less @@ -19,6 +19,10 @@ } } + &:focus { + border-color: @gray-darker; + } + > .item { display: block; width: 100%; diff --git a/apps/spreadsheeteditor/main/app/view/PivotSettings.js b/apps/spreadsheeteditor/main/app/view/PivotSettings.js index d7ee80d17..24a660a80 100644 --- a/apps/spreadsheeteditor/main/app/view/PivotSettings.js +++ b/apps/spreadsheeteditor/main/app/view/PivotSettings.js @@ -103,7 +103,7 @@ define([ el: $('#pivot-list-fields'), store: new Common.UI.DataViewStore(), simpleAddMode: true, - template: _.template(['
'].join('')), + template: _.template(['
'].join('')), itemTemplate: _.template([ '
', '