Using [dt] to theme subcomponents #3335
Unanswered
JHarrisGTI
asked this question in
PrimeNG
Replies: 1 comment 1 reply
-
After further investigation, it doesn't appear that the design token system includes support for theming subcomponents. Instead I'm using this SCSS rule: ::ng-deep .p-multiselect .p-checkbox-box {
--p-checkbox-checked-background: var(--p-sage);
--p-checkbox-border-color: var(--p-sage);
--p-checkbox-checked-border-color: var(--p-sage);
} ('sage' is the color I've defined in my preset, in the |
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
-
I am using scoped tokens to theme a multiselect component. Multiselect contains a number of checkbox components which I am having trouble styling. Here's the object I'm passing into the multiselect's
[dt]
:None of these do anything. Is there some special trick to accessing subcomponents?
Beta Was this translation helpful? Give feedback.
All reactions