Replies: 1 comment 1 reply
-
I think you may just need to remove the space in the calc function (specific to Tailwind). Try this: |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hey,
I am trying out the new beta Tree component, but I am struggling to use the
--tree-item-level
css variable to add left padding dependent on the tree level.I have a first pass at a wrapper component like this:
But, this isn't having an effect.
I can use data-[level=1]:pl-3, data-[level=2]:pl-5, but obviously the CSS var is ideal. Im sure this is a tailwind skill issue on my end, so would appreciate a tailwind example if possible to show me where I am going wrong!
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions