Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modern Theme not functioning #23

Open
Ranecdev opened this issue Nov 16, 2020 · 1 comment
Open

Modern Theme not functioning #23

Ranecdev opened this issue Nov 16, 2020 · 1 comment
Labels

Comments

@Ranecdev
Copy link

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: surveyjs/custom-widgets#192

@tsv2013
Copy link
Member

tsv2013 commented Nov 16, 2020

Instead of

import "survey-react/survey.css";

you need to import the modern theme CSS:

import "survey-react/modern.css";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants