Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directive for dropdown/toggle with no title? #19

Open
chrisjsewell opened this issue May 16, 2020 · 2 comments
Open

Directive for dropdown/toggle with no title? #19

chrisjsewell opened this issue May 16, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@chrisjsewell
Copy link
Member

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 #14 (comment)

@chrisjsewell
Copy link
Member Author

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
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant