Skip to content

New footer css #4555

Answered by TomJGooding
jessebot asked this question in Q&A
May 25, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The best way to understand how to style any widget in Textual is to have a look at the source code. I agree it would be nice if this was more discoverable by including this somehow in the docs..

You'll see the new Footer is composed of FooterKey widgets and doesn't have any of those old component classes.

Here's my quick attempt to replicate the styling but you might need to experiment! Unfortunately it looks like the new Footer doesn't have any gap between the key and the description which doesn't look great if you've added a background for the key - I might raise an issue for that.

from textual.app import App, ComposeResult
from textual.widgets import ClassicFooter, Footer, Static


class 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jessebot
Comment options

Answer selected by jessebot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants