Skip to content

Peer variants only work if 'peer' element comes before 'peer-{modifer}:' element #7132

@wfischer42

Description

@wfischer42

What version of Tailwind CSS are you using?
v3.0.15

What build tool (or framework if it abstracts the build tool) are you using?
postcss 8.4.5, Next.js 12.0.8

What version of Node.js are you using?

For example: v17.0.1

What browser are you using?
For example: Chrome

What operating system are you using?
macOS

Reproduction URL
https://play.tailwindcss.com/9tkBxIRJOq

Describe your issue
A peer variant seems to only work if the element with the peer class comes before the element with a peer-{modifier}: class. This is problematic element order can't always be easily rearranged to accommodate, particularly if it disrupts the tab-index flow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions