From d17812b33173eadef53b15f0a7131991b28804de Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Tue, 15 Oct 2024 10:38:16 +0100 Subject: [PATCH] Fixing styles on light mode of RadioSet --- src/textual/widgets/_toggle_button.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/textual/widgets/_toggle_button.py b/src/textual/widgets/_toggle_button.py index a6011d658f..98049d9374 100644 --- a/src/textual/widgets/_toggle_button.py +++ b/src/textual/widgets/_toggle_button.py @@ -73,11 +73,22 @@ class ToggleButton(Static, can_focus=True): & > .toggle--button { background: $foreground 25%; } + &:hover { + & > .toggle--label { + background: $highlight-cursor; + } + } } &:hover { - background: $highlight-hover; + & > .toggle--label { + background: $highlight-hover; + } + & > .toggle--button { + background: $foreground 25%; + } } + }