From d84d4c4cb75e467d10dadbca319820c82f9eaa4e Mon Sep 17 00:00:00 2001 From: Kaustubh Maske Patil <37668193+nikochiko@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:15:38 +0530 Subject: [PATCH] fix pill component: props must be passed to gui.tag, not gui.html --- py/gooey_gui/components/pills.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)