From 9827d7a49b11f0885057c85817880a5f40bad8e2 Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Tue, 24 Dec 2024 16:13:46 +0000 Subject: [PATCH] docs(action): fix namespaces code example Fix the code example for action namespaces, where clicking the links should update the background for that widget only. Fixes https://github.com/Textualize/textual/issues/5422 Co-authored-by: Andrew Schweitzer --- docs/examples/guide/actions/actions05.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples/guide/actions/actions05.py b/docs/examples/guide/actions/actions05.py index d6e8e6d478..341dc72153 100644 --- a/docs/examples/guide/actions/actions05.py +++ b/docs/examples/guide/actions/actions05.py @@ -3,9 +3,9 @@ TEXT = """ [b]Set your background[/b] -[@click=app.set_background('cyan')]Cyan[/] -[@click=app.set_background('magenta')]Magenta[/] -[@click=app.set_background('yellow')]Yellow[/] +[@click=set_background('cyan')]Cyan[/] +[@click=set_background('magenta')]Magenta[/] +[@click=set_background('yellow')]Yellow[/] """