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 <pedro.silva@collabora.com>
Change-Id: I71f6083e727eef223e55e89df94e37c394359443
This commit is contained in:
Pedro Pinto Silva 2021-04-30 15:54:50 +02:00 committed by pedropintosilva
parent b46c579524
commit 8ee385767a
2 changed files with 2 additions and 0 deletions

View file

@ -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;
}

View file

@ -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);