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

Vertically-oriented tabs #219

Open
QuLogic opened this issue Aug 28, 2024 · 1 comment
Open

Vertically-oriented tabs #219

QuLogic opened this issue Aug 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@QuLogic
Copy link

QuLogic commented Aug 28, 2024

Context

On the Matplotlib homepage, we list some tools using vertically-oriented tabs. This is implemented through regular HTML. I am now porting the site to reST sphinx-design, and would like to replicate it as best possible. While I have been able to replicate the styling relatively closely, I cannot figure out how to make the tabs vertical.

In our original site, the tab labels all come before the tab content divs, whereas in sphinx-design, the tab label is interleaved with the content divs. I think this is what makes it difficult to achieve vertical tabs purely in CSS, but I am no expert in web development, and it may still be possible.

Proposal

  • Add an option to tab-set for where to put the labels, stacked above, or stacked to the left.
  • For flexibility, it may also be nice to allow stacked on right or stack on bottom, but I don't know how difficult that is to implement.

Tasks and updates

No response

@QuLogic QuLogic added the enhancement New feature or request label Aug 28, 2024
@chrisjsewell
Copy link
Member

Interesting thanks, yeh I feel that should be possible; as you mention; outputting a "physically" different HTML structure for this mode, not just different CSS

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

2 participants