Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The modal opener is still a descendant of
is-active
https://screenshot.click/24-22-7aepp-g3r0n.png
The issue here seems to be of specificity:
https://screenshot.click/24-16-zdgsv-wac5e.png
By adding the
.product-media-container
class, it also works:https://screenshot.click/24-20-b1m2o-oyqyn.png
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.
Adding
.product-media-container
as in your last screenshot is indeed an option but works because it recreates a valid direct descendant. The structure isli.is-active > .product-media-container > .product__modal-opener
now which makes modal-opener a direct descendant (direct being a key word) of product-media-container, not the li.is-active. I'm not sure why your second screenshot shows the greyed out selector. Likely it was visible but was edited in the inspector.