Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(grid-list): Gracefully degrade tile width. (#1136)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpraul authored and yeelan0319 committed Aug 17, 2017
1 parent 7a0e8b6 commit 97575c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demos/grid-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}

.hero .mdc-grid-list {
max-width: 320px;
width: 320px;
background-color: white;
}

Expand Down
3 changes: 3 additions & 0 deletions packages/mdc-grid-list/mdc-grid-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ $mdc-grid-list-tile-secondary-icon-size: 24px;
.mdc-grid-tile {
display: block;
position: relative;

/* @alternate */
width: $mdc-grid-list-tile-width;
width: var(--mdc-grid-list-tile-width, $mdc-grid-list-tile-width);

&__primary {
Expand Down

0 comments on commit 97575c3

Please sign in to comment.