Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(drawer): Allow customizing drawer width #3459

Merged
merged 17 commits into from
Aug 30, 2018
Merged

Conversation

abhiomkar
Copy link
Collaborator

@abhiomkar abhiomkar commented Aug 28, 2018

Fixes #2603

@mdc-web-bot
Copy link
Collaborator

All 349 screenshot tests passed for commit b406aed vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

🤖 Beep boop!

Screenshot test report 🚦

4 screenshots changed from master on commit f532000:

Details

@mdc-web-bot
Copy link
Collaborator

🤖 Beep boop!

Screenshot test report 🚦

4 screenshots changed from master on commit c442558:

Details

@@ -320,6 +320,7 @@ Mixin | Description
`mdc-drawer-activated-overlay-color($color)` | Sets the overlay color of the activated drawer list item.
`mdc-drawer-scrim-fill-color($color)` | Sets the fill color of `mdc-drawer-scrim`.
`mdc-drawer-z-index($value)` | Sets the z index of drawer. Drawer stays on top of top app bar except for clipped variant of drawer.
`mdc-drawer-width($width)` | Sets the width of drawer and margin space required for `mdc-drawer-app-content` in case of dismissible variant.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this can be a little hard to read/parse (esp. the part that is dismissible-specific).

Sets the width of the drawer. In the case of the dismissible variant, also sets margin required for `mdc-drawer-app-content`.


@mixin mdc-drawer-width($width) {
width: $width;
max-width: $width;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this was already here, but I forget, why'd we need both width and max-width?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Removed.

@kfranqueiro
Copy link
Contributor

The latest screenshot test results seem to be showing a bunch of diffs I wouldn't expect. It looks like there's more content in the snapshot images (look at the scrollbars)...

@abhiomkar abhiomkar merged commit 247f75f into master Aug 30, 2018
@abhiomkar abhiomkar deleted the feat/drawer/width_mixin branch August 30, 2018 15:37
@jamesmfriedman jamesmfriedman mentioned this pull request Sep 26, 2018
49 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants