mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	- Cleaned up dropdown lists to look integrated - Added icons for color picker clear and menu list items
		
			
				
	
	
		
			15 lines
		
	
	
		
			426 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			426 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
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;
 | 
						|
    }
 | 
						|
} |