surveyjs_react_quickstart icon indicating copy to clipboard operation
surveyjs_react_quickstart copied to clipboard

Modern Theme not functioning

Open Ranecdev opened this issue 5 years ago • 1 comments

Applying the modern theme to the example survey results in visual bugs.

How to reproduce:

  • Clone from master

  • Change Survey.js:28 to Survey.StylesManager.applyTheme("modern");

  • Visit Survey page

The resulting survey will contain incorrect formatting. image

I also tried to following this issue but also failed to render it succesfully: https://github.com/surveyjs/custom-widgets/issues/192

Ranecdev avatar Nov 16 '20 09:11 Ranecdev

Instead of

import "survey-react/survey.css";

you need to import the modern theme CSS:

import "survey-react/modern.css";

tsv2013 avatar Nov 16 '20 09:11 tsv2013