Skip to content

Commit

Permalink
Fixing ListView item cs
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Oct 30, 2024
1 parent d2c588c commit 12a83ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/textual/widgets/_list_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, item: ListItem) -> None:
self.item = item
super().__init__()

async def _on_click(self, _: events.Click) -> None:
def _on_click(self, _: events.Click) -> None:
self.post_message(self._ChildClicked(self))

def watch_highlighted(self, value: bool) -> None:
Expand Down
4 changes: 2 additions & 2 deletions src/textual/widgets/_list_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ListView(VerticalScroll, can_focus=True, can_focus_children=False):

DEFAULT_CSS = """
ListView {
background: transparent;
background: $surface;
&:focus-within {
background-tint: $foreground 5%;
}
Expand All @@ -43,7 +43,7 @@ class ListView(VerticalScroll, can_focus=True, can_focus_children=False):
}
}
&:focus > ListItem.--highlight {
&:focus > ListItem.--highlight Widget {
color: $block-cursor-foreground;
background: $block-cursor-background;
text-style: $block-cursor-text-style;
Expand Down

0 comments on commit 12a83ef

Please sign in to comment.