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:
Dave Pearson
2022-10-13 14:23:26 +01:00
parent e109599a97
commit ed20f4a8e6

View File

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