diff --git a/CHANGELOG.md b/CHANGELOG.md index ff6bfa1e37..6cefbcb709 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Added missing `scroll_end` parameter to the `Log.write_line` method https://github.com/Textualize/textual/pull/5672 - Restored support for blink https://github.com/Textualize/textual/pull/5675 - Fixed scrolling breaking on DataTable with `overflow: hidden` https://github.com/Textualize/textual/pull/5681 +- Fixed ToggleButton glyph edges drawing lines through RadioButton https://github.com/Textualize/textual/pull/5722 ### Added diff --git a/src/textual/widgets/_radio_button.py b/src/textual/widgets/_radio_button.py index f1ec037a15..4896c5676d 100644 --- a/src/textual/widgets/_radio_button.py +++ b/src/textual/widgets/_radio_button.py @@ -15,6 +15,12 @@ class RadioButton(ToggleButton): BUTTON_INNER = "\u25cf" """The character used for the inside of the button.""" + BUTTON_LEFT = "" + """Unused left character from toggle button (empty to avoid unwanted rendering artifacts in some terminals).""" + + BUTTON_RIGHT = "" + """Unused right character from toggle button (empty to avoid unwanted rendering artifacts in some terminals).""" + class Changed(ToggleButton.Changed): """Posted when the value of the radio button changes.