diff --git a/docs/examples/styles/padding.css b/docs/examples/styles/padding.css index 4c558895b..68ad84385 100644 --- a/docs/examples/styles/padding.css +++ b/docs/examples/styles/padding.css @@ -3,7 +3,7 @@ Screen { color: blue; } -Static { +Label { padding: 4 8; background: blue 20%; } diff --git a/docs/examples/styles/padding.py b/docs/examples/styles/padding.py index 4893838c1..13c43381a 100644 --- a/docs/examples/styles/padding.py +++ b/docs/examples/styles/padding.py @@ -1,5 +1,5 @@ from textual.app import App -from textual.widgets import Static +from textual.widgets import Label TEXT = """I must not fear. Fear is the mind-killer. @@ -12,7 +12,7 @@ Where the fear has gone there will be nothing. Only I will remain.""" class PaddingApp(App): def compose(self): - yield Static(TEXT) + yield Label(TEXT) app = PaddingApp(css_path="padding.css")