colonel-kurtz icon indicating copy to clipboard operation
colonel-kurtz copied to clipboard

Menu Options: Expand & Collapse

Open mackermedia opened this issue 9 years ago • 3 comments

I've got a request to add the ability to expand/collapse individual content blocks.

Is this something that might be added as default options, or would you suggest forking?

@ltk & @nhunzaker

mackermedia avatar Dec 04 '15 21:12 mackermedia

Hmm. Possible you could do this with standard Block configuration. Let's touch base this week.

nhunzaker avatar Dec 07 '15 22:12 nhunzaker

Figured out how to roughly do this: commit

Would like to have the Menu close after I trigger an action but I can't quite figure that out. @mzlock was on the case with me a bit.

Gif: gif

efatsi avatar Dec 21 '15 22:12 efatsi

The menu is remaining open because the Expand/Collapse buttons hold their focus after activation. It might be nice to see a change in that behavior like:

On expand -> move focus to the first field inside the block On collapse -> move focus to the block's header

Alternatively, you could also have both buttons move the focus to their associated menu toggle button or to the block's header.

mzlock avatar Dec 21 '15 23:12 mzlock