-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs(cdk/dialog): add initial setup instructions for CDK dialogs #29209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added instructions for including structural styles required by CDK dialogs. Noted that without importing '@angular/cdk/overlay-prebuilt.css' in the global stylesheet, CDK dialogs did not work correctly.
The CDK dialogs 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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth mentioning that one can also get these styles by including the cdk.overlay
mixin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@crisbeto I've updated the instructions to include an alternative method using the cdk.overlay mixin in Sass.
Added alternative method for including CDK styles using the cdk.overlay mixin
@ifrntnd I can't merge in the change because of the third merge commit. Can you drop it from the PR? |
3c1a194
to
5a0a595
Compare
) * docs(cdk/dialog): add initial setup instructions for CDK dialogs Added instructions for including structural styles required by CDK dialogs. Noted that without importing '@angular/cdk/overlay-prebuilt.css' in the global stylesheet, CDK dialogs did not work correctly. * docs(cdk/dialog): added cdk.overlay mixin import Added alternative method for including CDK styles using the cdk.overlay mixin (cherry picked from commit 35f07c5)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Added instructions for including structural styles required by CDK dialogs. Noted that without importing
@angular/cdk/overlay-prebuilt.css
in the global stylesheet, CDK dialogs did not work correctly.