sphinx-tabs icon indicating copy to clipboard operation
sphinx-tabs copied to clipboard

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

Open AliveDevil opened this issue 1 year ago • 1 comments

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

AliveDevil avatar May 16 '24 12:05 AliveDevil

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
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! :tada:

welcome[bot] avatar May 16 '24 12:05 welcome[bot]