Change all tabbed sections to the same tab? #448
-
Hi there! I'm using tabbed sections within a post and it's been going great so far. For the sake of this example, assume my post is about how to install some tool, and the tabs highlight specific instructions on The post is pretty lengthy, and for reasons, I think I'd like to have many small tabbed sections instead of (say) three monolithic tabs. That's been great, but one idea I had to improve the user experience was to have all tabs "switch" to the selected tab. For example, imagine we have 10 different "examples" that span the 3 tabs. The reader starts with the I'm not 100% convinced this is a good idea, so if it's not easy to implement within If it helps, here is my environment information:
Thank you!! Many thanks to the authors for building such a fantastic tool. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Heya, yeh as I mentioned in jupyter-book/jupyter-book#1413, sphinx-design will eventually replace the current sphinx-panels, and this already has synced tabs: https://sphinx-design.readthedocs.io/en/latest/tabs.html#synchronised-tabs |
Beta Was this translation helpful? Give feedback.
-
Got it working. For anyone wondering how to get synchronized tabs:
|
Beta Was this translation helpful? Give feedback.
Heya, yeh as I mentioned in jupyter-book/jupyter-book#1413, sphinx-design will eventually replace the current sphinx-panels, and this already has synced tabs: https://sphinx-design.readthedocs.io/en/latest/tabs.html#synchronised-tabs