Skip to content

Does not work with min-h-auto #15

@monooso

Description

@monooso

Versions

Item Version
Elixir 1.18.2 (OTP 25)
Twix 92f84f5e

Description

Twix will not override a min-h-{x} class with min-h-auto. It handles overriding with another explicit value (min-h-{y}) just fine.

That may be a little confusing, so here's a simple demo:

import Twix

# Incorrect. Outputs "min-h-20 min-h-auto h-8"
["min-h-20", "min-h-auto h-8"] |> tw() |> IO.inspect()

# Correct. Outputs "min-h-4 h-8"
["min-h-20", "min-h-4 h-8"] |> tw() |> IO.inspect()

Expected behaviour

Twix should treat min-h-auto in the same way as min-h-{x}.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions