Add enabled and disabled pseudo-classes

Note that this doesn't touch the application of stylesheets yet, in terms of
things like specificity; this just makes sure that the classes exist and can
be seen.
This commit is contained in:
Dave Pearson
2023-02-13 12:56:52 +00:00
parent 7aaf884282
commit 257fe7b30a
2 changed files with 3 additions and 0 deletions

View File

@@ -315,6 +315,8 @@ The `background: green` is only applied to the Button underneath the mouse curso
Here are some other pseudo classes:
- `:disabled` Matches widgets which are in a disabled state.
- `:enabled` Matches widgets which are in an enabled state.
- `:focus` Matches widgets which have input focus.
- `:focus-within` Matches widgets with a focused a child widget.