Closed mcMickJuice closed 6 years ago
I'd be looking at JSS as the library to use here: https://github.com/cssinjs/jss
I think the CSS should be imported outside the component (already transpiled from SCSS to CSS), so the user can import it in whatever bundler is using:
import Timeline from 'react-calendar-timeline'
import 'react-calendar-timeline/lib/Timeline.css'
ReactDOM.render(
<Timeline />,
document.getElementById('root')
);
this is a great idea and would take like...5 minutes to do (just update the docs, remove import from the code). Next release is gonna be a major bump, prob just go to 1.0 so this will definitely be in there.
@mcMickJuice. That would be great. This will ease theme customization. When is v1.0 planned to be released?
is this making it into the next release or available in the dev branch?
hey @vasdee i havent looked at this yet (not importing CSS in library code). I can try to get it into the next release but I've lately been focusing on performance improvements.
Can follow https://github.com/namespace-ee/react-calendar-timeline/issues/274 for this change
If you're asking about CSS in JS solution, I'm not sure if thats the right approach or even what the API for this would look like...
Closing. Might address this once we do an API redesign.
There are complications with build steps and including stylesheets and appropriate loaders when using this library. I think that replacing the current css solution with a CSS in JS solution removes a lot of friction related to style. I think we should strive for the following characteristics: