Skip to content

Commit

Permalink
Ensure the toggle button keeps any bold state (#1965)
Browse files Browse the repository at this point in the history
* Ensure the toggle button keeps any bold state

Fixes #1963.

* Update snapshots
  • Loading branch information
davep authored Mar 7, 2023
1 parent b7de48c commit 6d23fdf
Show file tree
Hide file tree
Showing 2 changed files with 185 additions and 185 deletions.
2 changes: 1 addition & 1 deletion src/textual/widgets/_toggle_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _button(self) -> Text:
# If the button is off, we're going to do a bit of a switcharound to
# make it look like it's a "cutout".
if not self.value:
button_style = Style.from_color(
button_style += Style.from_color(
self.background_colors[1].rich_color, button_style.bgcolor
)

Expand Down
Loading

0 comments on commit 6d23fdf

Please sign in to comment.