-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix
Description
Bug, feature request, or proposal:
Proposal
Expected behavior
Providing a custom backdrop class with background-color: red
would result in a fully opaque backdrop.
Current behavior
Be default, that backdrop will be at 0.48 opacity. To make it fully opaque,
- You must explicitly set
opacity: 1
- You must do so appropriately within
.cdk-overlay-backdrop-showing
which requires at least a little digging through the DOM or source
https://stackblitz.com/edit/angular-material2-issue-t9xu95?file=styles.scss
Relevant code
Motivation
Showing a backdrop which is darker than 0.48 opacity it slightly more troublesome than it could be.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Latest
Metadata
Metadata
Assignees
Labels
P4A relatively minor issue that is not relevant to core functionsA relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix