Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct a typo in the Footer.__init__ docstring #5428

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/textual/widgets/_footer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class FooterKey(Widget):
}

&.-disabled {
text-style: dim;
text-style: dim;
}

&.-compact {
Expand All @@ -58,7 +58,7 @@ class FooterKey(Widget):
.footer-key--description {
padding: 0 0 0 1;
}
}
}
}
"""

Expand Down Expand Up @@ -134,20 +134,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 @@ -156,7 +156,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 @@ -189,7 +189,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
Loading