mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs(overlay): add note about pre-built styles (#12993)
Adds a note about the pre-built overlay styles since we have not mention of them anywhere else in the docs. Fixes #8717.
This commit is contained in:
committed by
Jeremy Elbourn
parent
5d9ab9eeb2
commit
86be1dcb19
@@ -1,5 +1,15 @@
|
||||
The `overlay` package provides a way to open floating panels on the screen.
|
||||
|
||||
### Initial setup
|
||||
The CDK overlays depend on a small set of structural styles to work correctly. If you're using
|
||||
Angular Material, these styles have been included together with the theme, otherwise if you're
|
||||
using the CDK on its own, you'll have to include the styles yourself. You can do so by importing
|
||||
the prebuilt styles in your global stylesheet:
|
||||
|
||||
```scss
|
||||
@import '~@angular/cdk/overlay-prebuilt.css';
|
||||
```
|
||||
|
||||
### Creating overlays
|
||||
Calling `overlay.create()` will return an `OverlayRef` instance. This instance is a handle for
|
||||
managing that specific overlay.
|
||||
|
||||
Reference in New Issue
Block a user