Skip to content
Discussion options

You must be logged in to vote

I wonder if, perhaps, it would make more sense to use the link styles? From what I can see you're adding your own component styling that's fighting with the builtin link styling. I sense that this might be closer to what you'er trying to do?

from textual.app import App, ComposeResult
from textual.widgets import Static
from rich.table import Table
from rich.text import Text

class Grid(Static):

    DEFAULT_CSS = """
    Grid {
        link-hover-color: red;
        link-hover-background: black;
        link-style: none;
    }
    """

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self._table_text = None

    def make_table(self):
        table = 

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jspv
Comment options

@davep
Comment options

Answer selected by jspv
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