Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 6ebe04d

Browse files
crisbetojelbourn
authored andcommitted
update(build): sort panel styles to the top (#9854)
Since the CSS is being compiled in alphabetical order, the mdPanel styles end up after most components in the compiled CSS, which makes it hard for components that implement mdPanel to override it's styles (the `opacity` in particular). This change sorts the panel styles to the top, right after all of the core structural CSS. This is a temporary solution until we get rid of interimElement and move mdPanel into the core.
1 parent d6d3546 commit 6ebe04d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

gulp/config.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ module.exports = {
2929
'src/core/style/mixins.scss',
3030
'src/core/style/structure.scss',
3131
'src/core/style/typography.scss',
32-
'src/core/style/layout.scss'
32+
'src/core/style/layout.scss',
33+
34+
// TODO(crisbeto): can be removed once mdPanel is in the core.
35+
'src/components/panel/*.scss'
3336
],
3437
scssLayoutFiles: [
3538
'src/core/style/variables.scss',
@@ -38,10 +41,10 @@ module.exports = {
3841
'src/core/services/layout/layout.scss'
3942
],
4043
scssLayoutAttributeFiles: [
41-
'src/core/style/variables.scss',
42-
'src/core/style/mixins.scss',
43-
'src/core/services/layout/layout-attributes.scss'
44-
],
44+
'src/core/style/variables.scss',
45+
'src/core/style/mixins.scss',
46+
'src/core/services/layout/layout-attributes.scss'
47+
],
4548
scssPaths : [
4649
'src/components/**/*.scss',
4750
'src/core/services/**/*.scss'

0 commit comments

Comments
 (0)