From 91565572873ac7a98f49af18e9085e7e35e43f97 Mon Sep 17 00:00:00 2001 From: Edan Bainglass Date: Mon, 3 Feb 2025 14:25:33 +0000 Subject: [PATCH] Apply button color class to `LinkButton` widget, not its internal anchor tag --- src/aiidalab_qe/common/widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aiidalab_qe/common/widgets.py b/src/aiidalab_qe/common/widgets.py index 20f14f549..c1917d6ab 100644 --- a/src/aiidalab_qe/common/widgets.py +++ b/src/aiidalab_qe/common/widgets.py @@ -1162,7 +1162,6 @@ def __init__( role="button" href="{link}" target="{"_self" if in_place else "_blank"}" - class="jupyter-button widget-button {class_}" style="cursor: default; width: fit-content; {style_}" > """ @@ -1174,7 +1173,9 @@ def __init__( self.value = html self.add_class("jupyter-button") + self.add_class("widget-button") self.add_class("link-button") + self.add_class(class_) self.disabled = disabled