Skip to content

Scope of tabs is visually unclear #173

Closed as not planned
Closed as not planned

Description

@timhoffm

Context

The tab content is only bounded by a top and bottom line. It's difficult to associate the bottom line with the end of the tab area.

Example: https://matplotlib.org/stable/devel/development_setup.html#create-a-dedicated-environment

grafik

Proposal

The tab scope should be visually more clear.

I suggest to draw a full box, e.g.

grafik

which I generated using the (not necessarily best) CSS:

  border-left: 0.0625rem solid var(--sd-color-tabs-underline);
  padding-left: 0.5rem;
  border-right: 0.0625rem solid var(--sd-color-tabs-underline);
  padding-right: 0.5rem;

Alternatively, one could add a background color to the tab content, but this may make consistent color styling harder.

Tasks and updates

No response

Activity

  1. added
    enhancement
    on Dec 4, 2023
  2. welcome commented on Dec 4, 2023

    @welcome

    Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

    If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

    If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

    Welcome to the EBP community! 🎉

  3. timhoffm commented on Jun 5, 2024

    @timhoffm
    Author

    Related: pydata-sphinx-theme has added styling for tabs within their theme, which solves this issue on their side: pydata/pydata-sphinx-theme#1555

  4. chrisjsewell commented on Nov 10, 2026

    @chrisjsewell
    Member

    Thanks for the suggestion. The tab look is deliberately minimal so themes can style it, and pydata-sphinx-theme now does this itself (pydata/pydata-sphinx-theme#1555). For other themes, you can box a tab's content with :class-content: sd-border-1 sd-px-2, or site-wide with a small custom CSS rule on .sd-tab-content. Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions