react-style-editor icon indicating copy to clipboard operation
react-style-editor copied to clipboard

@import not working

Open Tjerk-Haaye-Henricus opened this issue 2 years ago • 1 comments

Hey there.

First of all.. thanks for that editor 🙏

I'm currentl facing a issue when using @import statement.

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

by using this statement the output looks weired:

image

Tjerk-Haaye-Henricus avatar Jul 18 '22 14:07 Tjerk-Haaye-Henricus

Hi. I can't seem to reproduce your issue. Maybe paste the whole sample? My step were:

  1. Open the live demo (https://aurelain.github.io/react-style-editor/)
  2. Click Clean
  3. Click inside the textarea to focus it
  4. Paste your sample (from @ up to ;)
  5. Observe the formatted line that looks decent (as much as an @import statement could be)

Aurelain avatar Jul 21 '22 19:07 Aurelain