Tiptap cannot set the top position of the toolbar (#19087)
* Fixes #19086 by making top position a variable
* #19086 Added JSDoc for cssprops
(cherry picked from commit 12049e9c03)
This commit is contained in:
committed by
leekelleher
parent
d86064e1e5
commit
ebe93fbbac
@@ -8,6 +8,12 @@ import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/
|
||||
|
||||
import '../cascading-menu-popover/cascading-menu-popover.element.js';
|
||||
|
||||
/**
|
||||
* Provides a sticky toolbar for the {@link UmbInputTiptapElement}
|
||||
* @element umb-tiptap-toolbar
|
||||
* @cssprop --umb-tiptap-edge-border-color - Defines the edge border color
|
||||
* @cssprop --umb-tiptap-top - Defines the top value for the sticky toolbar
|
||||
*/
|
||||
@customElement('umb-tiptap-toolbar')
|
||||
export class UmbTiptapToolbarElement extends UmbLitElement {
|
||||
#attached = false;
|
||||
@@ -108,7 +114,7 @@ export class UmbTiptapToolbarElement extends UmbLitElement {
|
||||
flex-direction: column;
|
||||
|
||||
position: sticky;
|
||||
top: -25px;
|
||||
top: var(--umb-tiptap-top,-25px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
padding: var(--uui-size-3);
|
||||
|
||||
Reference in New Issue
Block a user