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

adjust opacity featured image for IE and Edge #375

Merged
merged 2 commits into from
Oct 28, 2018

Conversation

LittleBigThing
Copy link

Should fix #121

Adjusting the opacity for browsers that do not support mix-blend-mode (mainly IE and Edge) to make the featured image partially visible (otherwise blue rectangle).
Works fine with the Customizer option for enabling/disabling the filter.

Note that there is still a small bug in Edge: when clicking the featured image in the post feed, the image is regains its color despite the filter: grayscale(100%) on it. I am not sure how to fix this...
IE11 does not support filtering so, there it is not an issue.

adjusting the opacity for browsers that do not support mix-blend-mode (mainly IE and Edge) to make the featured image partially visible
Copy link
Collaborator

@kjellr kjellr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, @LittleBigThing! I added one tiny commit to darken the readability layer when people are using mix-blend-mode (I noticed that was a little lighter than last time I recorded it for some reason 🤷‍♂️).

I see what you mean about that removal of the grayscale filter on click in Edge. I tried adding a separate rule that specifically targeted that :focus state, but it didn't help. 😞 In any case, I think it's safe to pursue that bug separately.

Screenshots:

Chrome:
feed-chrome
single-chrome

Edge
feed-edge
single-edge

IE11
feed-ie11
single-ie11

^ I also noticed that IE is placing the title incorrectly here, so I'll open a bug for that as well.

Thanks again for following this through until merge. Great work!

@kjellr kjellr merged commit 3fcedbb into WordPress:master Oct 28, 2018
@LittleBigThing LittleBigThing deleted the fix-opacity-updated branch October 29, 2018 06:59
kjellr added a commit that referenced this pull request Oct 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjust opacity of filter/overlay layer for IE and Edge
2 participants