Skip to content

Commit c3f5a1a

Browse files
author
Полеводин Дмитрий Игоревич (4094029)
committed
fix: added zIndex varibale to HelpMark
1 parent 2ebcba2 commit c3f5a1a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/bundle/settings/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import type {MarkdownEditorMode, MarkdownEditorSplitMode} from '../types';
2626
import {MarkdownHints} from './MarkdownHints';
2727

2828
import './index.scss';
29+
import '../../styles/_zindex.scss';
2930

3031
const placement: PopupPlacement = ['bottom-end', 'top-end'];
3132

@@ -154,6 +155,7 @@ const SettingsContent: React.FC<SettingsContentProps> = function SettingsContent
154155
popoverProps={{
155156
placement: mdHelpPlacement,
156157
modal: false,
158+
zIndex: 'var(--md-editor-sticky-toolbar-popup-z-index)',
157159
}}
158160
className={bContent('mode-help')}
159161
>

src/styles/_zindex.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ $z-index-map: (
77
'table-view-button': 100,
88
'table-cell-button': 110,
99
'sticky-toolbar': 2000,
10+
'sticky-toolbar-popup': 2100,
1011
);
12+
13+
:root {
14+
--md-editor-sticky-toolbar-popup-z-index: #{map-get($z-index-map, 'sticky-toolbar-popup')}
15+
}
16+

0 commit comments

Comments
 (0)