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

How to import style? #93

Closed
JonnyLeiZhang opened this issue Jun 6, 2022 · 4 comments
Closed

How to import style? #93

JonnyLeiZhang opened this issue Jun 6, 2022 · 4 comments
Labels
question Further information is requested

Comments

@JonnyLeiZhang
Copy link

Hi @josdejong ,
Compared to jsoneditor, svelte-jsoneditor doesn't have jsoneditor.css file under dist folder.
In my project I need to import that to make style take effect. (And unfortunately only css is supported.)

Do you know any workaround for this? Or is it possible to bundle css for svelte-jsoneditor aslo?

BR/Lei

@josdejong
Copy link
Owner

The CSS styling of svelte-jsoneditor is bundled with the JavaScript code. There is no need to load an additional jsoneditor.css file.

You can customize the styling using CSS variables, see docs: https://github.com/josdejong/svelte-jsoneditor#styling

@josdejong josdejong added the question Further information is requested label Jun 6, 2022
@JonnyLeiZhang
Copy link
Author

Thanks @josdejong, now I can see these styles.
But I got one strange problem in tree mode, all the operations cannot work.
image
And I can manually add some items, but it still feels strange, I don't know why
jsoneditor

@josdejong
Copy link
Owner

Maybe you're hitting the issue described in #49?

@JonnyLeiZhang
Copy link
Author

Maybe you're hitting the issue described in #49?

Yeah I guess it's same issue.

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

No branches or pull requests

2 participants