Skip to content

Setting BorderTop(false) disappears entire border  #194

Open
@haarts

Description

@haarts

Hi all!

I'm having a blast with Bubbletea and Lipgloss, but I misunderstood something.

leftOnly = lipgloss.NewStyle().
		BorderStyle(lipgloss.Border{Left: "   new             "}).
		BorderTop(false). //these are the problem
		BorderRight(false). //
		BorderBottom(false).  //
                BorderForeground(neonOrange);
leftOnly.Render("some cyberpunk text");

Without these Border{Top,Right,Bottom} calls I get a lovely neon orange border around my text. But as soon as I call one of these the border disappears entirely. I would have expected that the respective border would not have been rendered?

(I don't think it has anything to do with the hack I used to display the text "new" vertically in the left border.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions