Merge pull request #2365 from umbraco/bugfix/tiptap/z-index

make z-index relative to the editor
This commit is contained in:
Jacob Overgaard
2024-09-30 10:02:44 +02:00
committed by GitHub
2 changed files with 3 additions and 2 deletions

View File

@@ -152,6 +152,8 @@ export class UmbInputTiptapElement extends UmbFormControlMixin<string, typeof Um
css` css`
:host { :host {
display: block; display: block;
position: relative;
z-index: 0;
} }
:host([readonly]) { :host([readonly]) {
pointer-events: none; pointer-events: none;
@@ -191,7 +193,6 @@ export class UmbInputTiptapElement extends UmbFormControlMixin<string, typeof Um
width: 100%; width: 100%;
min-height: 400px; min-height: 400px;
display: grid; /* Don't ask me why this is needed, but it is. */ display: grid; /* Don't ask me why this is needed, but it is. */
pre { pre {
background-color: var(--uui-color-surface-alt); background-color: var(--uui-color-surface-alt);
padding: var(--uui-size-space-2) var(--uui-size-space-4); padding: var(--uui-size-space-2) var(--uui-size-space-4);

View File

@@ -51,7 +51,7 @@ export class UmbTiptapFixedMenuElement extends UmbLitElement {
right: 0px; right: 0px;
padding: var(--uui-size-space-3); padding: var(--uui-size-space-3);
align-items: center; align-items: center;
z-index: 100; z-index: 9999999;
} }
:host([readonly]) { :host([readonly]) {