Code Monkey home page Code Monkey logo

Comments (3)

meowgorithm avatar meowgorithm commented on June 26, 2024

Good catch! I'd classify this as a bug. This also begs reexamining the behavior here in general:

Right now, if a style has a border set, but no specific top/bottom/left/right rules, the border applies to the entire box. As soon as one of the sides has a border true value, the other borders are treated as false.

Irrespective of breaking API changes, do we think this type of logic still makes sense?

from lipgloss.

haarts avatar haarts commented on June 26, 2024

In general, I would like to have more control over the borders (I'm massively biased because I'm trying to create a 'cyberpunk' feel to the interface I'm writing).
In that sense, the behaviour you are describing would be suboptimal. (To paraphrase you in order to check if I understand correctly: if you use a border with a true value (via BorderBottom(true) for example) the other borders disappear.
I would like the ability to true off and on each individual border.

On a slightly related note: adding Blink(true) to a border didn't have any effect. Perhaps intentional?

from lipgloss.

meowgorithm avatar meowgorithm commented on June 26, 2024

Oh, to clarify, you can always turn borders back on once they’re auto-set to false. What I’m describing is just default behavior which can always be overridden.

As for blink, it won’t affect borders however it is possible to make borders blink (with a little work) using Bubble Tea.

from lipgloss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.