Issues/1827 group-ungroup icons (#1956)

* show group and ungroup action-icon

* change group-icon visiblilty

don't show group if selected is only a single element or a single group of elements

Co-authored-by: rene_mbp <harryloveslearning@googlemail.com>
This commit is contained in:
Rene 2020-07-26 00:42:06 +02:00 committed by GitHub
parent 880cac2359
commit ebf2923c5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 190 additions and 4 deletions

View file

@ -973,7 +973,6 @@ describe("regression tests", () => {
"Copy styles",
"Paste styles",
"Delete",
"Group selection",
"Ungroup selection",
"Add to library",
"Send backward",
@ -984,7 +983,7 @@ describe("regression tests", () => {
];
expect(contextMenu).not.toBeNull();
expect(contextMenu?.children.length).toBe(11);
expect(contextMenu?.children.length).toBe(10);
options?.forEach((opt, i) => {
expect(opt.textContent).toBe(expectedOptions[i]);
});