Add or Inject a Class to actual SB Template? #29560
Unanswered
Riskbreaker01
asked this question in
Help
Replies: 1 comment
-
You can select it using the :has() selector, like .sb-docs:has(.template-b). If you follow the way with the decorators for example. If it's about the docs page you can provide your own docs templates |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
IS it possible to add a unique class to specific stories so a unique css can only target those templates?
Im able to add a decorator but it only adds it to the canvas/layout but not the SB template itself
Would like to add a unique class to it like "template-b":
class=" sbdocs sbdocs-preview sb-unstyled css-hd7ysc template-b"
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions