colonel-kurtz
colonel-kurtz copied to clipboard
Menu Options: Expand & Collapse
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
Hmm. Possible you could do this with standard Block configuration. Let's touch base this week.
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:
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.