diff --git a/gooey_ui/components.py b/gooey_ui/components.py index e569e4b8d..85806e39d 100644 --- a/gooey_ui/components.py +++ b/gooey_ui/components.py @@ -157,7 +157,16 @@ def controllable_tabs( ) -> tuple[list[state.NestingCtx], int]: index = state.session_state.get(key, 0) for i, label in enumerate(labels): - if button(label, key=f"tab-{i}", type="primary", disabled=i == index): + if button( + label, + key=f"tab-{i}", + type="primary", + className="replicate-nav", + style={ + "background": "black" if i == index else "white", + "color": "white" if i == index else "black", + }, + ): state.session_state[key] = index = i state.experimental_rerun() ctxs = []