mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Lexical: Refined editor UI
- Cleaned up dropdown lists to look integrated - Added icons for color picker clear and menu list items
This commit is contained in:
15
resources/js/wysiwyg/ui/framework/blocks/menu-button.ts
Normal file
15
resources/js/wysiwyg/ui/framework/blocks/menu-button.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import {EditorButton} from "../buttons";
|
||||
import {el} from "../../../utils/dom";
|
||||
import arrowIcon from "@icons/chevron-right.svg"
|
||||
|
||||
export class EditorMenuButton extends EditorButton {
|
||||
protected buildDOM(): HTMLButtonElement {
|
||||
const dom = super.buildDOM();
|
||||
|
||||
const icon = el('div', {class: 'editor-menu-button-icon'});
|
||||
icon.innerHTML = arrowIcon;
|
||||
dom.append(icon);
|
||||
|
||||
return dom;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user