jakezatecky / react-checkbox-tree

A simple and elegant checkbox tree for React.
https://jakezatecky.github.io/react-checkbox-tree/
MIT License
705 stars 212 forks source link

css is not loading properly #442

Open darda-veostr opened 1 year ago

darda-veostr commented 1 year ago

Describe the bug .css file is not working

I have css file include Like this: import "react-checkbox-tree/lib/react-checkbox-tree.css";

Screenshots

react_tree_view
jakezatecky commented 1 year ago

The CSS looks to have loaded fine, but the icons are not rendering. Did you import Font Awesome (the default icon library for this component)? You could add the following to the HTML:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" />
codygPRAMS commented 11 months ago

@jakezatecky Had a similar problem when importing into the page, the CDN worked for me.