Peer class incorrectly prefixed #6703
jordan-paz
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Installed sidebar in a project with tailwind prefix config (
tw-
). None of thepeer
class styles were working.After installing the sidebar, components had the
peer
class not prefixed, i.e.peer
. Components that use anypeer-
variants are prefixed withtw-
. For example:tw-peer-data-[size=sm]/menu-button:top-1
.Unfortunately, none of the peer styles were working. I found this section in the tailwind docs:
I wasn't sure if this applies to the
peer
class, but it got me suspecting something was wrong with the syntax. So I tried a few things out and found that adding the prefix to thepeer
class and removing the prefix on thetw-peer-[]
variant classes fixed the issue.Has anyone else experienced issues with the peer styles not being applied in a project using prefixes?
Beta Was this translation helpful? Give feedback.
All reactions