Skip to content

Commit b5310da

Browse files
crisbetokara
authored andcommitted
chore(drawer): mark drawer container as scrollable (#7455)
1 parent 846cc13 commit b5310da

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/lib/sidenav/drawer-container.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
<ng-content select="mat-drawer-content">
77
</ng-content>
8-
<mat-drawer-content *ngIf="!_content">
8+
<mat-drawer-content *ngIf="!_content" cdkScrollable>
99
<ng-content></ng-content>
1010
</mat-drawer-content>

src/lib/sidenav/sidenav-container.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
<ng-content select="mat-sidenav-content">
77
</ng-content>
8-
<mat-sidenav-content *ngIf="!_content">
8+
<mat-sidenav-content *ngIf="!_content" cdkScrollable>
99
<ng-content></ng-content>
1010
</mat-sidenav-content>

src/lib/sidenav/sidenav-module.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@ import {OverlayModule} from '@angular/cdk/overlay';
1111
import {CommonModule} from '@angular/common';
1212
import {NgModule} from '@angular/core';
1313
import {MatCommonModule} from '@angular/material/core';
14+
import {ScrollDispatchModule} from '@angular/cdk/scrolling';
1415
import {MatDrawer, MatDrawerContainer, MatDrawerContent} from './drawer';
1516
import {MatSidenav, MatSidenavContainer, MatSidenavContent} from './sidenav';
1617

1718

1819
@NgModule({
19-
imports: [CommonModule, MatCommonModule, A11yModule, OverlayModule],
20+
imports: [
21+
CommonModule,
22+
MatCommonModule,
23+
A11yModule,
24+
OverlayModule,
25+
ScrollDispatchModule,
26+
],
2027
exports: [
2128
MatCommonModule,
2229
MatDrawer,

0 commit comments

Comments
 (0)