-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat(image-list): Add Masonry Image List #2381
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some nits, otherwise LGTM!
packages/mdc-image-list/README.md
Outdated
```html | ||
<ul class="mdc-image-list mdc-image-list--masonry my-masonry-image-list"> | ||
<li class="mdc-image-list__item"> | ||
<img class="mdc-image-list__image" src="images/1-1.jpg"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Use src="..."
to be consistent with above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh jeez. that's not a nit, that's a "you copypasta'd from the demo you goof." I am ashamed.
packages/mdc-image-list/README.md
Outdated
@@ -91,12 +124,16 @@ Mixin | Description | |||
--- | --- | |||
`mdc-image-list-aspect($width-height-ratio)` | Styles the aspect container elements within an Image List to conform to the given ratio, where 1 is 1:1, greater than 1 is wider, and less than 1 is taller. | |||
`mdc-image-list-standard-columns($column-count, $gutter-size)` | Styles a Standard Image List to display the given number of columns. `$gutter-size` is optional and overrides the default amount of space between items. | |||
`mdc-image-list-masonry-columns($column-count, $gutter-size)` | Styles a Masonry Image List to display the given number of columns. `$gutter-size` is optional and overrides the default amount of space between items. | |||
|
|||
> **Note:** Only one of the `-columns` mixins should be used for any given Image List. Use the mixin appropriate to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Use mdc-image-list-...-columns
to be consistent with below.
Ran into a lint error which IMO is due to unwise ordering in our stylelintrc, which I'm fixing in #2395 before merging this. |
Codecov Report
@@ Coverage Diff @@
## master #2381 +/- ##
=======================================
Coverage 98.88% 98.88%
=======================================
Files 100 100
Lines 4144 4144
Branches 535 535
=======================================
Hits 4098 4098
Misses 46 46 Continue to review full report at Codecov.
|
Resolves #2315