Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 8bba12d

Browse files
authoredApr 27, 2018
fix(top-app-bar): Change margin-top to padding-top to prevent margin collapsing (#2643)
1 parent 75fe98d commit 8bba12d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎packages/mdc-top-app-bar/mdc-top-app-bar.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -191,23 +191,23 @@
191191
// stylelint-enable plugin/selector-bem-pattern
192192

193193
.mdc-top-app-bar--fixed-adjust {
194-
margin-top: $mdc-top-app-bar-row-height;
194+
padding-top: $mdc-top-app-bar-row-height;
195195
}
196196

197197
.mdc-top-app-bar--dense-fixed-adjust {
198-
margin-top: $mdc-top-app-bar-dense-row-height;
198+
padding-top: $mdc-top-app-bar-dense-row-height;
199199
}
200200

201201
.mdc-top-app-bar--short-fixed-adjust {
202-
margin-top: $mdc-top-app-bar-mobile-row-height;
202+
padding-top: $mdc-top-app-bar-mobile-row-height;
203203
}
204204

205205
.mdc-top-app-bar--prominent-fixed-adjust {
206-
margin-top: $mdc-top-app-bar-prominent-row-height;
206+
padding-top: $mdc-top-app-bar-prominent-row-height;
207207
}
208208

209209
.mdc-top-app-bar--dense-prominent-fixed-adjust {
210-
margin-top: $mdc-top-app-bar-dense-row-height * 2;
210+
padding-top: $mdc-top-app-bar-dense-row-height * 2;
211211
}
212212

213213
// Mobile Styles

0 commit comments

Comments
 (0)
This repository has been archived.