Skip to content

Commit db050c9

Browse files
committed
make z-index relative to the editor
1 parent 088c9cb commit db050c9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/packages/rte/tiptap/components/input-tiptap/input-tiptap.element.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ export class UmbInputTiptapElement extends UmbFormControlMixin<string, typeof Um
152152
css`
153153
:host {
154154
display: block;
155+
position: relative;
156+
z-index: 0;
155157
}
156158
:host([readonly]) {
157159
pointer-events: none;
@@ -191,7 +193,6 @@ export class UmbInputTiptapElement extends UmbFormControlMixin<string, typeof Um
191193
width: 100%;
192194
min-height: 400px;
193195
display: grid; /* Don't ask me why this is needed, but it is. */
194-
195196
pre {
196197
background-color: var(--uui-color-surface-alt);
197198
padding: var(--uui-size-space-2) var(--uui-size-space-4);

src/packages/rte/tiptap/components/input-tiptap/tiptap-fixed-menu.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class UmbTiptapFixedMenuElement extends UmbLitElement {
5151
right: 0px;
5252
padding: var(--uui-size-space-3);
5353
align-items: center;
54-
z-index: 100;
54+
z-index: 9999999;
5555
}
5656
5757
:host([readonly]) {

0 commit comments

Comments
 (0)