-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Style overlay backdrop for specific dialogs #2806
Comments
I see OverlayState has the option of whether or not to include a backdrop. Perhaps this option could be passed through the MdDialogConfig. That seems like a very easy change and I could make a pull request. Still investigating how a custom CSS class could be applied to the backdrop. |
Implement hasBackdrop as laid out in the MdDialog design document. Add backdropClass option to override default `cdk-overlay-dark-backdrop` class, allowing custom styling to be applied. Closes angular#2806
Implement hasBackdrop as laid out in the MdDialog design document. Add backdropClass option to override default `cdk-overlay-dark-backdrop` class, allowing custom styling to be applied. Closes angular#2806
…fig (#2822) * feat(dialog): add hasBackdrop and backdropClass options to dialog config Implement hasBackdrop as laid out in the MdDialog design document. Add backdropClass option to override default `cdk-overlay-dark-backdrop` class, allowing custom styling to be applied. Closes #2806 * rebase master and fix conflicts
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. |
Feature Request
What is the expected behavior?
Specify custom CSS classes for overlay backdrops for certain dialogs.
What is the current behavior?
Backdrops can not be individually styled. If I wanted to remove or style a backdrop it would have to be styled for all backdrops on all dialogs.
What is the use-case or motivation for changing an existing behavior?
To remove/style backdrops for specific dialogs. One dialog may not need a backdrop, or a backdrop with a different color or opacity.
The text was updated successfully, but these errors were encountered: