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

Commit

Permalink
fix(top-app-bar): Change margin-top to padding-top to prevent margin …
Browse files Browse the repository at this point in the history
…collapsing (#2643)
  • Loading branch information
williamernest authored Apr 27, 2018
1 parent 75fe98d commit 8bba12d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/mdc-top-app-bar/mdc-top-app-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,23 +191,23 @@
// stylelint-enable plugin/selector-bem-pattern

.mdc-top-app-bar--fixed-adjust {
margin-top: $mdc-top-app-bar-row-height;
padding-top: $mdc-top-app-bar-row-height;
}

.mdc-top-app-bar--dense-fixed-adjust {
margin-top: $mdc-top-app-bar-dense-row-height;
padding-top: $mdc-top-app-bar-dense-row-height;
}

.mdc-top-app-bar--short-fixed-adjust {
margin-top: $mdc-top-app-bar-mobile-row-height;
padding-top: $mdc-top-app-bar-mobile-row-height;
}

.mdc-top-app-bar--prominent-fixed-adjust {
margin-top: $mdc-top-app-bar-prominent-row-height;
padding-top: $mdc-top-app-bar-prominent-row-height;
}

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

// Mobile Styles
Expand Down

0 comments on commit 8bba12d

Please sign in to comment.