Skip to content

remove RadioButton glyph edges to prevent rendering artifacts in term… #5722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions src/textual/widgets/_radio_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down