Skip to content

Using body[data-theme] instead of html[data-theme] breaks using theme switcher #194

Open
@AliveDevil

Description

@AliveDevil

Describe the bug

A theme switcher component sets data-theme on html-element, not on html.body, as html attributes aren't inherited, Tabs break when using html.data-theme.

image

Reproduce the bug

  1. Create project with sphinx-rtd, sphinx-tabs and sphinx-rtd-dark-mode
  2. Create tab
  3. Switch theme

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