jupyter-book icon indicating copy to clipboard operation
jupyter-book copied to clipboard

Allow dropdown to be rendered as uncollapsed

Open psychemedia opened this issue 3 years ago • 1 comments

Describe the problem/need and solution

Adding the dropdown class to a special content block allows the block to be collapsed in order to hide block contents.

By default, the block is rendered in a collapsed mode. It would be useful to also allow the user to set a class that allows the block to be rendered with a collapse option but in uncollapsed form.

Guide for implementation

Currently, adding the dropdown class appears to also add a toggle class that renders the collapsible control, and, by default, a toggle-hidden class that causes the block to be rendered in collapsed form.

Toggling the state removes the toggle-hidden class.

It would be used to be able to set a class that will render the toggle toggle but in an expanded (not hidden) mode. That is, the user should be able to prevent the setting of toggle-hidden class.

Tasks and updates

No response

psychemedia avatar Apr 19 '22 11:04 psychemedia

Linking this to https://github.com/executablebooks/sphinx-togglebutton/

mmcky avatar Apr 29 '22 03:04 mmcky