Slider: CSS Styles not imported

Created on 24 Jan 2018  路  3Comments  路  Source: react-component/slider

Follow the demo use: _import 'rc-slider/assets/index.less';_

But on render, the styles never import...

My setup: ES6, webpack and SCSS for styles

Btw... would be great have styles formatted

Most helpful comment

Ty for reply, I forge to write that I use import 'rc-slider/assets/index.css'; too... perhaps is something about webpack?

All 3 comments

use import 'rc-slider/assets/index.css'; to replace import 'rc-slider/assets/index.less'; and try again.

Ty for reply, I forge to write that I use import 'rc-slider/assets/index.css'; too... perhaps is something about webpack?

I have the same issue, I had to use rc-slider/dist/rc-slider.min.css locally and none of the three options presented work on CI. Perhaps an inline CSS version could be offered as an optional alternative?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sonovice picture sonovice  路  7Comments

wzup picture wzup  路  6Comments

Bernabe-Felix picture Bernabe-Felix  路  3Comments

nmccrea-db picture nmccrea-db  路  5Comments

nitroamos picture nitroamos  路  4Comments