We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TabbedContent
TabbedContent is a little too broad in how it styles some things; this can be shown with the following code:
from textual.app import App, ComposeResult from textual.containers import Horizontal, Vertical from textual.widgets import Button, Tabs, TabbedContent, TabPane, Label class TabsStyleLeakApp(App[None]): CSS = """ Vertical, TabbedContent { width: 1fr; } """ def stuff(self) -> ComposeResult: yield Label("This label is topmost") yield Button("This button is second") yield Tabs("After", "Button") def compose(self) -> ComposeResult: with Horizontal(): with Vertical(): yield from self.stuff() with TabbedContent(): with TabPane("Test"): yield from self.stuff() if __name__ == "__main__": TabsStyleLeakApp().run()
This results in the following:
Note how the Tabs is composed last but within the TabbedContent it's displaying first due to the use of dock on Tabs within TabbedContent.
Tabs
dock
The text was updated successfully, but these errors were encountered:
✨ Example for Textualize/textual#4232
4d8c3dd
Make the styling of tabs in TabbedContent less leaky
a7a0e3f
Fixes Textualize#4232
Don't forget to star the repository!
Follow @textualizeio for Textual updates.
Sorry, something went wrong.
davep
Successfully merging a pull request may close this issue.
TabbedContent
is a little too broad in how it styles some things; this can be shown with the following code:This results in the following:
Note how the
Tabs
is composed last but within theTabbedContent
it's displaying first due to the use ofdock
onTabs
withinTabbedContent
.The text was updated successfully, but these errors were encountered: