Skip to content

[Sidenav] - add support for 'backdrop' as optional input #5300

Closed

Description

@Lior-G

Bug, feature request, or proposal:

I would like to suggest to have 'backdrop' as an optional input for Sidenav compoment.
Default would be true for 'mode' = 'over' or 'push', and false for 'side'

What is the expected behavior?

if 'backdrop' input is provided, to overwrite the default; and show/hide backdrop accordingly

What is the current behavior?

Backdrop exists for 'mode' = 'over' or 'push', and does not exist for 'side'

What are the steps to reproduce?

current documentation on Sidenav:
https://material.angular.io/components/sidenav/overview

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

Give user the flexibility to not have 'backdrop' on 'mode' = 'over' or 'push' or do have it on 'side'

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

"@angular/core": "4.2.0-beta.0",
"@angular/material": "^2.0.0-beta.3",
"typescript": "~2.3.2"

Is there anything else we should know?

this change would be appreciated

Activity

  1. Lior-G commented on Jun 22, 2017

    @Lior-G
    Author

    I noticed this is related (not duplicate) to #4482

  2. kaylucas commented on Jun 27, 2017

    @kaylucas

    I'm looking for the same feature. We're using the sidenav for a mapping application where the sidenav is opening over the map. If the backdrop could be disabled this would give the user the ability to pan/click items on the map while having the sidenav open. Now it's disabling the map usage and users have to click out of it. I could use the 'side' mode but it's not working very well on mobile and it makes the map look strange because it compresses the width.

  3. thw0rted commented on Aug 18, 2017

    @thw0rted

    This is supported by the spec. The same sidenav should be usable for "permanent", "persistent", or "temporary" navigation drawers. Right now the "over" mode works well for "temporary" but I don't see any way to do "persistent", which is what I think @kaylucas is looking for.

  4. TobiasVdb commented on Sep 12, 2017

    @TobiasVdb

    +1

  5. added
    feature
    P3
    on Nov 21, 2017
  6. self-assigned this
    on Jan 13, 2018
  7. added 3 commits that reference this issue on Jan 13, 2018
    688b5e3
    1afee23
    bf9a73e
  8. added a commit that references this issue on Jan 21, 2018
    7f58c00
  9. added a commit that references this issue on Jan 30, 2018
    6d606c2
  10. added a commit that references this issue on Feb 13, 2018
    6d4e052
  11. angular-automatic-lock-bot commented on Sep 8, 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.

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

Metadata

Metadata

Labels

P3feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions