From 8ee385767a86161417393409ce0da77c9b56abcf Mon Sep 17 00:00:00 2001 From: Pedro Pinto Silva Date: Fri, 30 Apr 2021 15:54:50 +0200 Subject: [PATCH] Notebookbar: Add CSS class to buttons with dropdown arrow - Normal: has-dropdown - Part of color control: has-dropdown--color Signed-off-by: Pedro Pinto Silva Change-Id: I71f6083e727eef223e55e89df94e37c394359443 --- loleaflet/src/control/Control.JSDialogBuilder.js | 1 + loleaflet/src/control/Control.NotebookbarBuilder.js | 1 + 2 files changed, 2 insertions(+) diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js index 003b537cd..571454c37 100644 --- a/loleaflet/src/control/Control.JSDialogBuilder.js +++ b/loleaflet/src/control/Control.JSDialogBuilder.js @@ -2435,6 +2435,7 @@ L.Control.JSDialogBuilder = L.Control.extend({ } if (options && options.hasDropdownArrow) { + $(div).addClass('has-dropdown'); var arrow = L.DomUtil.create('i', 'unoarrow', div); controls['arrow'] = arrow; } diff --git a/loleaflet/src/control/Control.NotebookbarBuilder.js b/loleaflet/src/control/Control.NotebookbarBuilder.js index 6a482ae2e..4d48cd5a1 100644 --- a/loleaflet/src/control/Control.NotebookbarBuilder.js +++ b/loleaflet/src/control/Control.NotebookbarBuilder.js @@ -416,6 +416,7 @@ L.Control.NotebookbarBuilder = L.Control.JSDialogBuilder.extend({ button.setAttribute('alt', id); L.DomUtil.create('i', 'unoarrow', div); + $(div).addClass('has-dropdown--color'); var valueNode = L.DomUtil.create('div', 'selected-color', div);