Skip to content

Commit 5a0a595

Browse files
committed
docs(cdk/dialog): added cdk.overlay mixin import
Added alternative method for including CDK styles using the cdk.overlay mixin
1 parent 02c8ab9 commit 5a0a595

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/cdk/dialog/dialog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ the prebuilt styles in your global stylesheet:
1111
@import '@angular/cdk/overlay-prebuilt.css';
1212
```
1313

14+
Alternatively, you can include the styles using the `cdk.overlay` mixin in your Sass file. You can import the mixin as follows:
15+
16+
```scss
17+
@use '@angular/cdk' as cdk;
18+
19+
@include cdk.overlay();
20+
```
21+
1422
<!-- example(cdk-dialog-overview) -->
1523

1624
You can open a dialog by calling the `open` method either with a component or with a `TemplateRef`

0 commit comments

Comments
 (0)