From 4c9afca8fdc2d16f04825407304e0b8d8da82d8d Mon Sep 17 00:00:00 2001 From: Dave Pearson Date: Tue, 23 May 2023 10:02:07 +0100 Subject: [PATCH] Add a docstring for the component classes. --- src/textual/widgets/_selection_list.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/textual/widgets/_selection_list.py b/src/textual/widgets/_selection_list.py index 99e86d136..5f42d4e3b 100644 --- a/src/textual/widgets/_selection_list.py +++ b/src/textual/widgets/_selection_list.py @@ -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 {