Skip to content

Commit 73f94f7

Browse files
committed
Mode type update
1 parent 4760539 commit 73f94f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

projects/dxc-ngx-cdk/src/lib/dxc-application-layout/dxc-application-layout-sidenav/dxc-application-layout-sidenav.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import { responsiveSizes } from "../../variables";
1616
import { coerceBooleanProperty } from "@angular/cdk/coercion";
1717
import { SidenavService } from "./services/sidenav.service";
1818

19-
type Mode = "push" | "overlay";
20-
2119
type Space =
2220
| "xxsmall"
2321
| "xsmall"
@@ -46,7 +44,7 @@ export class DxcApplicationLayoutSidenavComponent implements OnInit, OnChanges {
4644
* Default action over the content of the page, overlay the content or push to the right ('push' | 'overlay').
4745
* In lower resolutions the mode will always be overlay.
4846
*/
49-
@Input() mode: Mode = "push";
47+
@Input() mode: "push" | "overlay" = "push";
5048
/**
5149
* Size of the padding to be applied to the custom area ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge').
5250
* You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different padding sizes.

0 commit comments

Comments
 (0)