Skip to content

Commit

Permalink
partial solution to content tabs in #56
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Apr 2, 2022
1 parent f9697ce commit e89e923
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sphinx_immaterial/content_tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ def run(self) -> List[nodes.Node]:

# add tab label
textnodes, _ = self.state.inline_text(self.arguments[0], self.lineno)
tab_label = nodes.rubric(
self.arguments[0], *textnodes, classes=["tabbed-label"]
)
tab_label = nodes.rubric("", "", *textnodes, classes=["tabbed-label"])
self.add_name(tab_label)
tab_item += tab_label

Expand Down Expand Up @@ -152,6 +150,7 @@ def visit_tab_set(self: HTMLTranslator, node: content_tab_set):

# create: <label for="id">...</label>
label_node = content_tab_label(
"",
"",
*tab_label.children,
input_id=tab_item_identity,
Expand Down

0 comments on commit e89e923

Please sign in to comment.