Skip to content

Commit 7475929

Browse files
committed
Update postcss config to include nesting
1 parent 1cdacb5 commit 7475929

File tree

4 files changed

+46
-12
lines changed

4 files changed

+46
-12
lines changed

package-lock.json

+35-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"devDependencies": {
2626
"@babel/cli": "7.8.4",
2727
"@babel/core": "7.8.4",
28-
"@babel/preset-env": "7.11.5",
2928
"@babel/plugin-proposal-optional-chaining": "7.8.3",
3029
"@babel/plugin-transform-react-jsx": "7.8.3",
30+
"@babel/preset-env": "7.11.5",
3131
"@material/button": "5.1.0",
3232
"@material/card": "5.1.0",
3333
"@material/checkbox": "5.1.0",
@@ -44,8 +44,8 @@
4444
"@material/switch": "6.0.0",
4545
"@material/tab-bar": "5.1.0",
4646
"@material/textfield": "5.1.0",
47-
"@material/top-app-bar": "5.1.0",
4847
"@material/tooltip": "8.0.0",
48+
"@material/top-app-bar": "5.1.0",
4949
"@material/typography": "5.1.0",
5050
"@sheerun/mutationobserver-shim": "0.3.3",
5151
"@testing-library/dom": "7.2.2",
@@ -123,7 +123,7 @@
123123
"postcss-import": "12.0.1",
124124
"postcss-loader": "3.0.0",
125125
"postcss-mixins": "6.2.3",
126-
"postcss-nested": "4.2.1",
126+
"postcss-nested": "4.2.3",
127127
"postcss-preset-env": "6.7.0",
128128
"postcss-simple-vars": "5.0.2",
129129
"prettier": "npm:[email protected]",

postcss.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@ module.exports = {
8585
stage: 0,
8686
preserve: false, // Omit pre-polyfilled CSS.
8787
features: {
88-
'nesting-rules': false, // Uses postcss-nesting which doesn't behave like Sass.
88+
'nesting-rules': true, // Uses postcss-nesting which doesn't behave like Sass.
8989
'custom-properties': {
9090
preserve: true, // Do not remove :root selector.
9191
},
92+
'custom-media-queries': true,
9293
},
9394
autoprefixer: {
9495
grid: true,

theme/assets/css/src/components/top-app-bar.css

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
& .mdc-top-app-bar__action-item,
2323
& .mdc-top-app-bar__navigation-icon {
2424
color: var(--mdc-theme-on-header, var(--mdc-theme-on-primary, #fff));
25+
26+
&:hover,
27+
&:focus,
28+
&:visited {
29+
color: var(--mdc-theme-on-header, var(--mdc-theme-on-primary, #fff));
30+
}
2531
}
2632

2733
& .mdc-top-app-bar__section--align-start {

0 commit comments

Comments
 (0)