mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add some default styling to a radio set
This commit is contained in:
@@ -12,6 +12,18 @@ from ._toggle import ToggleButton
|
||||
class RadioSet(Container):
|
||||
"""Widget for grouping a collection of radio buttons into a set."""
|
||||
|
||||
DEFAULT_CSS = """
|
||||
RadioSet {
|
||||
border: round #666;
|
||||
height: auto;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
App.-light-mode RadioSet {
|
||||
border: round #CCC;
|
||||
}
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
*buttons: str | RadioButton,
|
||||
|
||||
Reference in New Issue
Block a user