sphinx-panels icon indicating copy to clipboard operation
sphinx-panels copied to clipboard

Directive for dropdown/toggle with no title?

Open chrisjsewell opened this issue 5 years ago • 2 comments

things like code cells.. Maybe that's out-of-scope for this directive though?

Yeh thats a bit more tricky. I think for details there has to be at least some kind of element above the content that you're hiding, as opposed to the button to the side that you have now. It doesn't have to be a whole banner though, e.g. the emoji buttons on this page uses details

Originally posted by @chrisjsewell in https://github.com/executablebooks/sphinx-panels/issues/14#issuecomment-629417723

chrisjsewell avatar May 16 '20 01:05 chrisjsewell

What would be the "ideal" UI/UX for this? i.e. what would the content look like closed/open, where does the user click to collapse/expand?

In sphinx-togglebutton: sphinx-togglebutton-collapse-output

In jupyter-lab: jupyter-lab-collapse-output

chrisjsewell avatar May 17 '20 04:05 chrisjsewell

Note that, if this was to fully supersede sphinx-togglebutton, it would also need to cover the use case of adding togglability to existing containers: https://sphinx-togglebutton.readthedocs.io/en/latest/#toggling-content-by-adding-classes. This is particularly neccessary for collapsible cells in MyST-NB: https://myst-nb.readthedocs.io/en/latest/use/hiding.html

chrisjsewell avatar May 17 '20 06:05 chrisjsewell