mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 07:41:09 +00:00
Merge pull request #4081 from overleaf/msm-symbol-toggle-styling
Added 'active' styling to Symbol Palette toggle button GitOrigin-RevId: a1a51e42a08cd3627d0bc4610e6895e111d951f9
This commit is contained in:
parent
7338560899
commit
6140b53493
2 changed files with 12 additions and 0 deletions
|
@ -142,6 +142,12 @@ App.directive(
|
|||
}
|
||||
})
|
||||
|
||||
ide.$scope.$on('symbol-palette-toggled', (event, isToggled) => {
|
||||
if (!isToggled) {
|
||||
editor.focus()
|
||||
}
|
||||
})
|
||||
|
||||
scope.$watch('autoPairDelimiters', autoPairDelimiters => {
|
||||
if (autoPairDelimiters) {
|
||||
return editor.setOption('behavioursEnabled', true)
|
||||
|
|
|
@ -304,6 +304,12 @@
|
|||
color: @formatting-btn-color;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: @toolbar-btn-active-color;
|
||||
background-color: @toolbar-btn-active-bg-color;
|
||||
box-shadow: @toolbar-btn-active-shadow;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
color: @formatting-btn-color;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue