Skip to content

Commit

Permalink
fix: process every css custom property on builds. This fixes IE11 iss…
Browse files Browse the repository at this point in the history
…ues as we use this as a polyfill
  • Loading branch information
tujoworker committed Apr 23, 2019
1 parent b2c15cc commit d7e4a47
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
8 changes: 1 addition & 7 deletions packages/dnb-ui-lib/scripts/prepub/config/postcssConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ module.exports = ({ IE11 = false, ...options } = {}) => {
browsers: ['last 2 versions', IE11 ? 'explorer >= 11' : null].filter(
i => i
),
importFrom: [
extractCSSProperties('./src/style/core/properties.scss', {
// includePaths: [
// path.resolve(__dirname, '../../../src/style/core/')
// ]
})
],
importFrom: [extractCSSProperties('./src/style/index.scss')],
...options
}),

Expand Down
4 changes: 1 addition & 3 deletions packages/dnb-ui-lib/src/style/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
*
*/

import './dnb-ui-core.scss'
import './dnb-ui-components.scss'
import './themes/theme-ui/dnb-theme-ui.scss'
import './index.scss'
9 changes: 9 additions & 0 deletions packages/dnb-ui-lib/src/style/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* This package includes the DNB core styles
*
*/

// default packages import
@import './dnb-ui-core.scss';
@import './dnb-ui-components.scss';
@import './themes/theme-ui/dnb-theme-ui.scss';

0 comments on commit d7e4a47

Please sign in to comment.