Skip to content

Commit

Permalink
Fix tab_label error
Browse files Browse the repository at this point in the history
  • Loading branch information
Praecordi committed Jul 21, 2023
1 parent 537e0d0 commit 96ac918
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sphinx_design/tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def run(self) -> List[nodes.Node]:
textnodes, _ = self.state.inline_text(self.arguments[0], self.lineno)
tab_label = nodes.rubric(
self.arguments[0],
"",
*textnodes,
classes=["sd-tab-label"] + self.options.get("class-label", []),
)
Expand Down Expand Up @@ -260,6 +261,7 @@ def run(self) -> None:

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

0 comments on commit 96ac918

Please sign in to comment.