Skip to content

group class and group variants #8

@thetechnaddict

Description

@thetechnaddict

So the group class in Tailwindcss - here's how I understand it, but I can't find it's definition in the documentation... and it does not appear to be implemented in elm-tailwind-modules perhaps there is a work-around in elm-css?

For example , an item has 2 elements
One is an icon , and the other is text (a sidebar nav link for instance)

When you hover the item, how can you let item's contents change styles trigger by a-hover ?

So you need a group class.
div .group .green .hover:blue
svg .white .group-hover:gray
text .white .group-hover:gray

When you hover on div
group-hover can let element trigger by hover under class 'group'

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