Skip to content

Commit

Permalink
fix: alert style name in widget
Browse files Browse the repository at this point in the history
  • Loading branch information
leovan authored and portellaa committed Oct 15, 2024
1 parent 5d7b7be commit e4814fd
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,15 @@ def render(self) -> widgets.GridBox:
)
)
)

style_name = styles[type_name]
if style_name not in ('primary', 'success', 'info', 'warning', 'danger'):
style_name = ''

items.append(
Button(
description=type_name.replace("_", " ").capitalize(),
button_style=styles[type_name],
button_style=style_name,
disabled=True,
)
)
Expand Down

0 comments on commit e4814fd

Please sign in to comment.