Skip to content

Commit

Permalink
Show arrow for switch mode button
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Apr 18, 2024
1 parent fbacc28 commit 8d8dac2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/common/main/lib/view/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ define([

if (isPDFEditor && config.isEdit && config.canSwitchMode) {
me.btnPDFMode = new Common.UI.Button({
cls: 'btn-header btn-header-pdf-mode no-caret',
cls: 'btn-header btn-header-pdf-mode',
iconCls: 'toolbar__icon icon--inverse btn-sheet-view',
caption: me.textView,
menu: true,
Expand All @@ -785,7 +785,7 @@ define([
changePDFMode.call(me, config);
} else if (isDocEditor && config.isEdit && config.canSwitchMode) {
me.btnDocMode = new Common.UI.Button({
cls: 'btn-header btn-header-pdf-mode no-caret',
cls: 'btn-header btn-header-pdf-mode ',
iconCls: 'toolbar__icon icon--inverse ' + (config.isReviewOnly ? 'btn-ic-review' : 'btn-edit'),
caption: config.isReviewOnly ? me.textReview : me.textEdit,
menu: true,
Expand Down
15 changes: 14 additions & 1 deletion apps/common/main/resources/less/header.less
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,19 @@
opacity: @header-component-hover-icon-opacity;
}
}

.caret {
border-color: @icon-toolbar-header-ie;
border-color: @icon-toolbar-header;
}

&:active:not(.disabled),
&.active:not(.disabled){
.caret {
border-color: @icon-toolbar-header-ie;
border-color: @icon-toolbar-header;
}
}
}

svg.icon {
Expand Down Expand Up @@ -349,7 +362,7 @@
width: auto;

.caption {
margin: 2px 0 0 2px;
margin: 2px 4px 0 2px;
color: @text-toolbar-header-ie;
color: @text-toolbar-header;
}
Expand Down
10 changes: 10 additions & 0 deletions apps/common/main/resources/less/toolbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,11 @@
color: @text-normal;
}

.caret {
border-color: @icon-normal-ie;
border-color: @icon-normal;
}

.inner-box-icon {
> svg {
fill: @text-normal-ie;
Expand Down Expand Up @@ -649,6 +654,11 @@
color: @highlight-button-pressed-ie;
color: @highlight-button-pressed;
}

.caret {
border-color: @icon-normal-pressed-ie;
border-color: @icon-normal-pressed;
}
}
}
}
Expand Down

0 comments on commit 8d8dac2

Please sign in to comment.