mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add code markup a string that is a widget ID
Elsewhere in the docs we see `"something"` for a class, so I feel it follows that "#something" should really be `"#something"` too.
This commit is contained in:
@@ -317,7 +317,7 @@ Some of the new styles have more than one selector separated by a space. The spa
|
||||
}
|
||||
```
|
||||
|
||||
The `.started` selector matches any widget with a `"started"` CSS class. While `#start` matches a child widget with an ID of "start". So it matches the Start button only for Stopwatches in a started state.
|
||||
The `.started` selector matches any widget with a `"started"` CSS class. While `#start` matches a child widget with an ID of `"start"`. So it matches the Start button only for Stopwatches in a started state.
|
||||
|
||||
The rule is `"display: none"` which tells Textual to hide the button.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user