Skip to content

Commit

Permalink
use active class instead of hardcoded styles
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Nov 7, 2023
1 parent bc45093 commit edb9a0a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gooey_ui/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,7 @@ def horizontal_radio(
format_func(option),
key=f"tab-{key}-{option}",
type="primary",
className="replicate-nav",
style={
"background": "black" if value == option else "white",
"color": "white" if value == option else "black",
},
className="replicate-nav " + ("active" if value == option else ""),
disabled=disabled,
):
state.session_state[key] = value = option
Expand Down

0 comments on commit edb9a0a

Please sign in to comment.