jsoneditor-react
jsoneditor-react copied to clipboard
Do not hardcode css
There is hardcoded css import:
import 'jsoneditor/dist/jsoneditor.css';
This makes any css customisation harder. Please remove this import so that we can import css of our choice.
I agree! I have found a work around that seems to work for anyone wondering. Passing CSS through htmlElementProps
seems to work. But it isn't the best solution obviously.
Maybe someone has workaround? I would like to change the .jsoneditor-menu { background-color: #4b4b4b }
and cannot do it through htmlElementProps
You might be able to go into the CSS code in the node_modules
folder, or change the properties of the jsoneditor-menu class through javascript if that's possible.
can't import any css file in node_modules in next js
would be great, this adds a ton of css and makes lazy loading of the css really hard.
@SeeThruHead I have the same issue. Found a solution?
no we didn't use this because of the issue
It should be that hard to exclude the css file right ? Please take this into account..
is it possible to exclude css for next.js apps?
@SeeThruHead did you find an alternative you liked that works with next js?
@anavgagneja this may help https://github.com/tsukhu/jsoneditor-react-ext