material-components / material-design-for-wordpress

Material Design plugin for WordPress
78 stars 22 forks source link

Masonry style displays one card above the other #396

Closed felipebochehin87 closed 2 years ago

felipebochehin87 commented 2 years ago

Bug Description

Masonry style displays one card above the other, making it difficult to identify the cards that are hidden.

Expected Behaviour

Cards should be more visible.

Steps to reproduce

  1. Go to https://dev-mdc-web.pantheonsite.io/wp-admin/
  2. Go to Pages and click on Add New
  3. Add a Query Loop > Material Image Card for Query Loop
  4. Set it to Masonry and preview page

Screenshots

masonry

Additional context


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry

felipebochehin87 commented 2 years ago

@PatelUtkarsh @igruszkauy @mattchungxwp new bug found.

PatelUtkarsh commented 2 years ago

This issue happens when two masonry query loops or gallery masonry are inserted on the same page / post.

felipebochehin87 commented 2 years ago

@PatelUtkarsh thanks for clarifying :) that's the bug we talked about on our call last Friday. :)

PatelUtkarsh commented 2 years ago

QA note:

  1. In the same post / page, add the following block.
  2. Add image card using query loop.
  3. Add material card using query loop.
  4. Add material gallery.
  5. Publish and test frontend.
igruszkauy commented 2 years ago

Verified via: https://dev-mdc-web.pantheonsite.io/masonry-style-test/

Issue fixed: screencapture-dev-mdc-web-pantheonsite-io-masonry-style-test-2022-08-20-09_53_55