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.