How to add responsive (as per selected device) custom css rule and handle trait value accordingly? Same as the style manager property updates for the component #4816
Unanswered
FaisalShaikhHA
asked this question in
Q&A
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.
-
I want to add a custom CSS rule for my component on color trait change and update trait value according to the current device selected same as the style manager property updates for the component.
editor.Css.setRule(
#${cid}.active, { color: color }, opts);
Is there any other way to achieve the same and how can I update trait values on device updates?
I really appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions