Skip to content

Commit

Permalink
fix pill component: props must be passed to gui.tag, not gui.html
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Nov 7, 2024
1 parent 8256a89 commit d84d4c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/gooey_gui/components/pills.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ def pill(
if not unsafe_allow_html:
title = html.escape(title)

className += f" badge rounded-pill"
className += " badge rounded-pill"
if text_bg:
className += f" text-bg-{text_bg}"

with gui.tag("span", className=className):
gui.html(title, **props)
with gui.tag("span", className=className, **props):
gui.html(title)

0 comments on commit d84d4c4

Please sign in to comment.