Add a docstring for the component classes.

This commit is contained in:
Dave Pearson
2023-05-23 10:02:07 +01:00
parent 195e9b4021
commit 4c9afca8fd

View File

@@ -74,6 +74,14 @@ class SelectionList(Generic[SelectionType], OptionList):
"selection-list--button-highlighted",
"selection-list--button-selected-highlighted",
}
"""
| Class | Description |
| :- | :- |
| `selection-list--button` | Target the default button style. |
| `selection-list--button-selected` | Target a selected button style. |
| `selection-list--button-highlighted` | Target a highlighted button style. |
| `selection-list--button-selected-highlighted` | Target a highlighted selected button style. |
"""
DEFAULT_CSS = """
SelectionList > .selection-list--button {