Fix minor readability issue in modifying CSS class

This commit is contained in:
Mike Driscoll
2022-10-06 13:30:49 -05:00
committed by GitHub
parent 53d3080fa0
commit 317c2c60e1

View File

@@ -320,7 +320,7 @@ The rule is `"display: none"` which tells Textual to hide the button.
### Manipulating classes ### Manipulating classes
Modifying a widget's CSS classes it a convenient way to modify visuals without introducing a lot of messy display related code. Modifying a widget's CSS class is a convenient way to modify visuals without introducing a lot of messy display related code.
You can add and remove CSS classes with the [add_class()][textual.dom.DOMNode.add_class] and [remove_class()][textual.dom.DOMNode.remove_class] methods. We will use these methods to connect the started state to the Start / Stop buttons. You can add and remove CSS classes with the [add_class()][textual.dom.DOMNode.add_class] and [remove_class()][textual.dom.DOMNode.remove_class] methods. We will use these methods to connect the started state to the Start / Stop buttons.