Skip to content

Commit

Permalink
Merge pull request #5428 from davep/fix-footer-typo
Browse files Browse the repository at this point in the history
Correct a typo in the `Footer.__init__` docstring
  • Loading branch information
willmcgugan authored Jan 7, 2025
2 parents 06e7787 + 43b56b6 commit 18bcbd6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/textual/widgets/_footer.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class FooterKey(Widget):
}
&.-disabled {
text-style: dim;
text-style: dim;
}
&.-compact {
Expand All @@ -59,7 +59,7 @@ class FooterKey(Widget):
.footer-key--description {
padding: 0 0 0 1;
}
}
}
}
"""

Expand Down Expand Up @@ -136,20 +136,20 @@ class Footer(ScrollableContainer, can_focus=False, can_focus_children=False):
grid-gutter: 1;
}
FooterKey.-command-palette {
dock: right;
dock: right;
padding-right: 1;
border-left: vkey $foreground 20%;
border-left: vkey $foreground 20%;
}
&:ansi {
background: ansi_default;
&:ansi {
background: ansi_default;
.footer-key--key {
background: ansi_default;
color: ansi_magenta;
color: ansi_magenta;
}
.footer-key--description {
background: ansi_default;
color: ansi_default;
color: ansi_default;
}
FooterKey:hover {
text-style: underline;
Expand All @@ -158,7 +158,7 @@ class Footer(ScrollableContainer, can_focus=False, can_focus_children=False):
.footer-key--key {
background: ansi_default;
}
}
}
FooterKey.-command-palette {
background: ansi_default;
border-left: vkey ansi_black;
Expand Down Expand Up @@ -191,7 +191,7 @@ def __init__(
id: The ID of the widget in the DOM.
classes: The CSS classes for the widget.
disabled: Whether the widget is disabled or not.
show_command_palette: Show key binding to command palette, on the right of the footer.
show_command_palette: Show key binding to invoke the command palette, on the right of the footer.
"""
super().__init__(
*children,
Expand Down

0 comments on commit 18bcbd6

Please sign in to comment.