Add some default styling to a radio set

This commit is contained in:
Dave Pearson
2023-02-23 10:54:28 +00:00
parent af3c5f15c6
commit 1c05f79f3c

View File

@@ -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,