Skip to content

Style overlay backdrop for specific dialogs #2806

Closed

Description

@YeomansIII

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.

Activity

  1. YeomansIII commented on Jan 26, 2017

    @YeomansIII
    ContributorAuthor

    I see OverlayState has the option of whether or not to include a backdrop.
    https://github.com/angular/material2/blob/master/src/lib/dialog/dialog.ts#L143

    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.
    This exists, but it looks it's been inactive for a few months. It also seems like they were making the change for a different purpose.

  2. added a commit that references this issue on Jan 26, 2017
    9b103fe
  3. added a commit that references this issue on Apr 19, 2017
    e6a9323
  4. added a commit that references this issue on Apr 25, 2017
    7428c49
  5. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions