Skip to content

Apply a dark "scrim" when drawer is open#223

Open
cooperka wants to merge 1 commit intoroot-two:masterfrom
cribspot:master
Open

Apply a dark "scrim" when drawer is open#223
cooperka wants to merge 1 commit intoroot-two:masterfrom
cribspot:master

Conversation

@cooperka
Copy link
Copy Markdown

@cooperka cooperka commented Sep 20, 2016

When used as suggested in the example docs, this adds a dark shadow over the main content when the drawer is open. Using a scrim is suggested in Google's Material Design guide, and is done in many popular apps.

It would be awesome if we could animate this, but I also don't want to bog anything down performance-wise. It would be simple to add a new state item e.g. openRatio, and apply the scrim incrementally based on how far open the drawer is. Just let me know if you'd prefer that I implement this!

@cooperka
Copy link
Copy Markdown
Author

Hi @rt2zz, would you mind taking a look at this PR please? It's small but useful :)

@cooperka
Copy link
Copy Markdown
Author

cooperka commented Nov 4, 2016

@rt2zz ping

@cooperka cooperka changed the title Apply styles.mainScrim when drawer is open Apply a dark "scrim" when drawer is open Apr 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant