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

Cannot set max-width of the layout grid using a Sass variable #1085

Closed
tinrab opened this issue Aug 7, 2017 · 0 comments
Closed

Cannot set max-width of the layout grid using a Sass variable #1085

tinrab opened this issue Aug 7, 2017 · 0 comments
Assignees

Comments

@tinrab
Copy link
Contributor

tinrab commented Aug 7, 2017

What MDC-Web Version are you using?

v0.16.0

What are the steps to reproduce the bug?

  1. set max width inside demos/demos.scss file before importing MDC.
$mdc-layout-grid-max-width: 300px;
@import "../../material-components-web/material-components-web";
  1. run the demo server
  2. navigate to http://localhost:8080/layout-grid.html
  3. observe the grid's width

What is the expected behavior?

Compiled class mdc-layout-grid should contain max-width property with expected value.

What is the actual behavior?

Setting $mdc-layout-grid-max-width variable, as described in documentation for Layout Grids, does not restrict max width of the layout grid.

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

No branches or pull requests

2 participants