Skip to content
Discussion options

You must be logged in to vote

I think perhaps what is confusing here is that the .input class in the App CSS doesn't handle the :focus pseudo class either, yet that works as Ulrich expects without any border when it is focused.

It looks like the DEFAULT_CSS above was missing the parent selector, after adding this here:

class LabelInput(Widget):
    DEFAULT_CSS = """
    LabelInput {
        layout: horizontal;
    }
    
    LabelInput .labelinput {
        border: none;
        height: 1;
        background: magenta;
    }
    """

Or using nested CSS like this:

class LabelInput(Widget):
    DEFAULT_CSS = """
    LabelInput {
        layout: horizontal;
    
        .labelinput {
            border: none;

Replies: 2 comments 5 replies

Comment options

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

Answer selected by UlrichGoebel
@davep
Comment options

Comment options

You must be logged in to vote
3 replies
@UlrichGoebel
Comment options

@davep
Comment options

@davep
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants