diff --git a/py/gooey_gui/components/pills.py b/py/gooey_gui/components/pills.py index 62ff41e..c34fe28 100644 --- a/py/gooey_gui/components/pills.py +++ b/py/gooey_gui/components/pills.py @@ -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)