Skip to content

Synchronous tab switching is not working #12

Description

@ntolia

According to the docs at https://sphinxcontrib-contentui.readthedocs.io/en/latest/tabs.html, the the name attribute should match with “tab-container” from another blocks to enable synchronous tab switching. However, that doesn't seem to work with the following code. Am I missing anything obvious?

Also, when clicking on the selected tab again, the tab contents seem to disappear. This was unexpected. Happy to file another issue on this if needed.

.. content-tabs::

    .. tab-container:: ex1
        :title: Tab title one

        Hello World


    .. tab-container:: ex2
        :title: Tab title two

        Hello World 2

Lorem ipsum

.. content-tabs::

    .. tab-container:: ex1
        :title: Tab title one

        Hello Universe

    .. tab-container:: ex2
        :title: Tab title two

        Hello Universe 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions