palantir / blueprint

A React-based UI toolkit for the web
https://blueprintjs.com/
Apache License 2.0
20.75k stars 2.18k forks source link

CSS ordering conflict with DatePicker month/year choosers #2952

Open spefley opened 6 years ago

spefley commented 6 years ago

Environment

I checked and the css that's overriding the datetime select styles here comes from the core package image 5

Order of css imported: 1. core 2. datetime 3. select

screen shot 2018-09-17 at 11 05 20 am

Order of css imported: 1. core 2. select 3. datetime image

spefley commented 6 years ago

@giladgray this is the result of a standing bug in mini-css-extract-plugin that means css isn't necessarily ordered (see: https://github.com/webpack-contrib/mini-css-extract-plugin/issues/188). This doesn't happen in bp because it's still on webpack 3 with extract-text-webpack-plugin (though that also has issues w/ ordering, see: https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/200).