File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,10 @@ $mat-toolbar-padding: 16px !default;
51
51
// Set the default height for the toolbar.
52
52
@include mat-toolbar-height ($mat-toolbar-height-desktop );
53
53
54
- // Specific height for mobile devices in portrait mode.
55
- @media ($mat-xsmall ) and (orientation : portrait ) {
54
+ // As per specs, mobile devices will use a different height for toolbars than for desktop.
55
+ // The height for mobile landscape devices has been ignored since relying on `@media orientation`
56
+ // is causing issues on devices with a soft-keyboard.
57
+ // See: https://material.io/guidelines/layout/structure.html#structure-app-bar
58
+ @media ($mat-xsmall ) {
56
59
@include mat-toolbar-height ($mat-toolbar-height-mobile-portrait );
57
60
}
58
-
59
- // Specific height for mobile devices in landscape mode.
60
- @media ($mat-small ) and (orientation : landscape ) {
61
- @include mat-toolbar-height ($mat-toolbar-height-mobile-landscape );
62
- }
You can’t perform that action at this time.
0 commit comments