Skip to content

Commit

Permalink
selector
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Sep 20, 2023
1 parent fc24db1 commit 13e8e0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/textual/widgets/_selection_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ class SelectionList(Generic[SelectionType], OptionList):
height: auto;
}
.-light-mode SelectionList:focus > .selection-list--button-selected {
SelectionList:light:focus > .selection-list--button-selected {
color: $primary;
}
.-light-mode SelectionList > .selection-list--button-selected-highlighted {
SelectionList:light > .selection-list--button-selected-highlighted {
color: $primary;
}
.-light-mode SelectionList:focus > .selection-list--button-selected-highlighted {
SelectionList:light:focus > .selection-list--button-selected-highlighted {
color: $primary;
}
Expand Down
6 changes: 3 additions & 3 deletions src/textual/widgets/_toggle_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ class ToggleButton(Static, can_focus=True):
/* Light mode overrides. */
App.-light-mode ToggleButton > .toggle--button {
ToggleButton:light > .toggle--button {
color: $background;
background: $foreground 10%;
}
App.-light-mode ToggleButton:focus > .toggle--button {
ToggleButton:light:focus > .toggle--button {
background: $foreground 25%;
}
App.-light-mode ToggleButton.-on > .toggle--button {
ToggleButton:light.-on > .toggle--button {
color: $primary;
}
""" # TODO: https://github.com/Textualize/textual/issues/1780
Expand Down

0 comments on commit 13e8e0a

Please sign in to comment.