Skip to content

Tabs don't switch to dark mode #193

@mdorier

Description

@mdorier

Describe the bug

I am using the sphinx_book_theme and I enabled the light/dark button. I am using group_tabs to show multiple codes as follows:

  .. tabs::

     .. group-tab:: C++

        .. literalinclude:: ../_code/energy_topic.cpp
           :language: cpp
           :start-after: START CREATE TOPIC
           :end-before: END CREATE TOPIC
           :dedent: 8

     .. group-tab:: Python

        Work in progress...

     .. group-tab:: mofkactl

        Work in progress...

With the light mode this is what is shown:
Screenshot 2024-02-28 at 10 08 58

With dark mode, this is what I have:
Screenshot 2024-02-28 at 10 09 11

The code itself switched to its dark theme, however the tab around it and the tabs' titles stay on light mode.

expectation

I would expect the tabs to also switch to a dark theme.

Reproduce the bug

Example of site reproducing the problem: https://mofka.readthedocs.io/en/latest/usage/topics.html#creating-a-topic
The source is here: https://github.com/mochi-hpc/mofka/tree/b440d2ed2b2cea788044718c76890d647f50b1a1/docs

List your environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions