Skip to content

Style overlay backdrop for MdSidenav #4482

Closed

Description

@Dunos

Feature Request

What is the expected behavior?

Add an extra parameter to the MdSidenav element to add or remove backdrop shadow (just like the new hasBackdrop being implemented in #2822, and also being able to change its color.

What is the current behavior?

Backdrops only can be changed via global styles or custom CSS with /deep/

What is the use-case or motivation for changing an existing behavior?

To remove/style backdrops for specific sidenavs. One sidenav may not need a backdrop, or a backdrop with a different color or opacity.

Activity

  1. added
    feature
    on May 11, 2017
  2. Lior-G commented on Jun 22, 2017

    @Lior-G

    I would agree and would like to see this.
    I had not notice before this was opened when I opened #5300

  3. TobiasVdb commented on Sep 12, 2017

    @TobiasVdb

    +1

  4. mittcoats commented on Oct 4, 2017

    @mittcoats
    Contributor

    +1 -- this would be very helpful

  5. added
    P4
    on Nov 21, 2017
  6. SvenBudak commented on Apr 26, 2019

    @SvenBudak

    I am currently doing a themeSwitcher what is located in the SnackBar. it would be awesome if its possible to fade the background out and in on functionCall. It makes sense to show the backdrop to show people that there is something opend at bottom of screen (The SnackBar) but after they realize it, and change the color, they need to see the real color change of layout. so the Backdrop is anyoing in that moment they try to find the best color.

  7. added
    needs: discussion
    and removed on Mar 3, 2020
  8. crisbeto commented on Apr 23, 2021

    @crisbeto
    Member

    Closing since this has always been possible by targeting the mat-drawer-backdrop CSS class.

  9. angular-automatic-lock-bot commented on May 24, 2021

    @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.

  10. locked and limited conversation to collaborators on May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P4area: material/sidenavfeatureneeds: discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions