diff --git a/demos/image-list.html b/demos/image-list.html
index e6aee34200d..0ff2f60b0ce 100644
--- a/demos/image-list.html
+++ b/demos/image-list.html
@@ -304,6 +304,132 @@
Standard Image List
+
+ Masonry Image List
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+ -
+
+
+ Text label
+
+
+
@@ -327,6 +453,7 @@ Standard Image List
});
var standardImageListEl = document.getElementById('standard-image-list');
+ var masonryImageListEl = document.getElementById('masonry-image-list');
document.getElementById('standard-label-below').addEventListener('change', function() {
standardImageListEl.classList[this.checked ? 'remove' : 'add']('mdc-image-list--with-text-protection');
@@ -342,6 +469,21 @@ Standard Image List
standardImageListEl.classList[this.checked ? 'remove' : 'add']('mdc-image-list--with-text-protection');
standardImageListEl.classList[this.checked ? 'add' : 'remove']('hide-supporting');
});
+
+ document.getElementById('masonry-label-below').addEventListener('change', function() {
+ masonryImageListEl.classList[this.checked ? 'remove' : 'add']('mdc-image-list--with-text-protection');
+ masonryImageListEl.classList[this.checked ? 'remove' : 'add']('hide-supporting');
+ });
+
+ document.getElementById('masonry-label-protected').addEventListener('change', function() {
+ masonryImageListEl.classList[this.checked ? 'add' : 'remove']('mdc-image-list--with-text-protection');
+ masonryImageListEl.classList[this.checked ? 'remove' : 'add']('hide-supporting');
+ });
+
+ document.getElementById('masonry-label-none').addEventListener('change', function() {
+ masonryImageListEl.classList[this.checked ? 'remove' : 'add']('mdc-image-list--with-text-protection');
+ masonryImageListEl.classList[this.checked ? 'add' : 'remove']('hide-supporting');
+ });
});