Skip to content

[blink] tag does not work properly in Static after version 1.0.0 #5637

Closed
@fentamin

Description

@fentamin

The bug

The [blink] tag does not work properly inside Static starting from version 2.0.0. (Platform: Windows, Python version: 3.11+)

Description

In Textual 1.0.0, the following code correctly displays blinking yellow text inside a Static widget. However, in Textual 2.0.0 and later, the text appears in plain white and does not blink.

from textual.app import App, ComposeResult
from textual.containers import Container
from textual.widgets import Static
from textual import __version__

class BlinkTestApp(App):
    def compose(self) -> ComposeResult:
        yield Container(Static(f"[blink yellow]Test blink - {__version__}[/]"))

if __name__ == "__main__":
    BlinkTestApp().run()

Expected Behavior

The text should appear in yellow and blink, as it did in version 1.0.0.

Actual Behavior

The text is displayed in plain white and does not blink.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions