Open remigarcia opened 3 years ago
SurveyJS modern theme does not support colors customization. You can change colors this way for the default theme only.
This is working :
Survey.StylesManager.ThemeColors['modern']['$main-color'] = '#ff0000';
I can override this way the modern theme colors. My problem is that they show only at the first render, if I change the colors afterward and rerender the Survey, the color stay at its first value.
Are you requesting a feature, reporting a bug or asking a question?
I have a question about theme customization in react
What is the current behavior?
When I dynamically change a color in the "modern" theme, the Survey component is not rerendered with that changed color.
What is the expected behavior?
When I dynamically change a color in the "modern" theme, the Survey component should be rerendered with that changed color.
Provide the test code and the tested page URL (if applicable)
Here I render the Survey with a custom red
$main-color
, and on a click on a button, I want my survey rerendered with the$main-color
in green. The following code shows the survey with the red color, but on the click, the color doesn't change.How to force the rerender of the theme with the new theme colors ?
Test code
Specify your