Make WordPress Core

Opened 7 years ago

Closed 6 years ago

Last modified 5 years ago

#40843 closed defect (bug) (fixed)

Twenty Seventeen: broken MediaElement.js player icons on hover

Reported by: celloexpressions's profile celloexpressions Owned by: pento's profile pento
Milestone: 5.2 Priority: normal
Severity: normal Version: 4.7
Component: Bundled Theme Keywords: has-screenshots has-patch commit
Focuses: ui Cc:

Description

Color schemes seem to cause issues with MediaElement.js audio and video player icons, erasing the icons on hover. Likely also related to button styling.

Attachments (6)

twentyseventeen-broken-mediaelement-button-hover.PNG (1.6 KB) - added by celloexpressions 7 years ago.
Hover state on play/pause icon, normal on audio/mute button.
audioplayer.gif (46.0 KB) - added by menakas 7 years ago.
Not able to reproduce with dark color scheme (of the Twenty Seventeen theme)
audioplayer1.gif (54.7 KB) - added by menakas 7 years ago.
Not able to reproduce with light color scheme (of the Twenty Seventeen theme)
40843.diff (1.5 KB) - added by xkon 7 years ago.
Fixes button:hover color on me-js
40843.2.diff (1.6 KB) - added by xkon 7 years ago.
Fixes button:hover background on me-js container
40843.3.diff (1.6 KB) - added by xkon 6 years ago.
refresh

Download all attachments as: .zip

Change History (25)

@celloexpressions
7 years ago

Hover state on play/pause icon, normal on audio/mute button.

@menakas
7 years ago

Not able to reproduce with dark color scheme (of the Twenty Seventeen theme)

@menakas
7 years ago

Not able to reproduce with light color scheme (of the Twenty Seventeen theme)

#1 @menakas
7 years ago

  • Keywords reporter-feedback added

Hi @celloexpressions,
I am not able to reproduce this with the various color schemes of the theme - light, dark and custom. I have attached gifs for the same. Can you give some more pointers that could help me reproduce this defect?

#2 @davidakennedy
7 years ago

  • Milestone 4.8.1 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hi @celloexpressions – thanks for creating this issue!

Like @menakas, I wasn't able to reproduce this issue. I tried on all color types, light, dark and custom. Everything worked as normal for me. I also double checked hover styles against Twenty Sixteen.

I'm going to close this. If I missed something, let me know, and we can reopen it and fix.

#3 @celloexpressions
7 years ago

  • Keywords reporter-feedback removed
  • Milestone set to Future Release
  • Resolution worksforme deleted
  • Status changed from closed to reopened

This is an issue with custom color schemes, not light/dark, and only in the customize preview. Looks like the cascade is broken here with .colors-custom button:hover.

@xkon
7 years ago

Fixes button:hover color on me-js

#4 @xkon
7 years ago

  • Keywords has-patch added; needs-patch removed

40843.diff skips the me-js buttons from applying the custom background colors.

Further information: As the button background is .svg based, by adding a custom color through an extra .css or Customizr was resulting on overwriting the .svg element. That being said there's no way to target the me-js specific .svg as installations are different on every WordPress. This patch uses a simple trick with :not() to 'skip' the me-js buttons while selecting new colors.

It works fine on my tests but further tests on different spec pcs are always welcome.

Concerning browser support on not(): https://www.w3schools.com/cssref/sel_not.asp

Version 0, edited 7 years ago by xkon (next)

@xkon
7 years ago

Fixes button:hover background on me-js container

This ticket was mentioned in Slack in #design by xkon. View the logs.


7 years ago

#6 @ianbelanger
6 years ago

  • Keywords commit added

I can confirm this issue still exists in Twenty Seventeen and the patch still applies and fixes it. I am recommending this gets committed

#7 @ianbelanger
6 years ago

  • Milestone changed from Future Release to 5.2

#8 @SergeyBiryukov
6 years ago

I see similar styles in all of the bundled themes, is it only Twenty Seventeen that has this issue?

#9 @ianbelanger
6 years ago

That's a great question @SergeyBiryukov, I will look into the other themes today and create separate tickets, if needed.

#10 @ianbelanger
6 years ago

It appears that this is an issue in only Twenty Seventeen. 2010 - 2016 do not have the Custom Color option and 2019 does have the Custom Color option, but does not have this issue.

This ticket was mentioned in Slack in #core by audrasjb. View the logs.


6 years ago

#12 @audrasjb
6 years ago

  • Keywords needs-refresh added; commit removed

#13 @audrasjb
6 years ago

  • Owner set to xkon
  • Status changed from reopened to assigned

@xkon
6 years ago

refresh

#14 @xkon
6 years ago

  • Keywords commit added; needs-refresh removed

40843.3.diff is just a simple refresh, applies fine now without need of auto-correcting lines.

@SergeyBiryukov yes I can confirm as @ianbelanger said as well this issue was only for 2017 :) .

Marking this for commit.

#15 @pento
6 years ago

  • Owner changed from xkon to pento
  • Status changed from assigned to accepted

#16 @pento
6 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 45146:

Twenty Seventeeen: Fix MediaElement control hover colours in the customiser.

When selecting custom colour schemes in the customiser, the hover colour is incorrectly applied to MediaElement controls.

Props xkon, ianbelanger.
Fixes #40843.

#17 @afercia
5 years ago

See #47543 as the selector used in [45146] appears to be not supported (not even by latest Chrome).

button:hover:not( .mejs-container > button ) is just ignored as "invalid", preventing normal buttons to get their hover style.

#18 @SergeyBiryukov
5 years ago

In 45576:

Twenty Seventeen: Correct the CSS selectors intended to fix hover colors for MediaElement controls.

This is a follow-up to the previous fix in [45146], which didn't work as expected.

Props ryokuhi.
Fixes #47543. See #40843.

#19 @SergeyBiryukov
5 years ago

In 45847:

Twenty Seventeen: Correct the CSS selectors intended to fix hover colors for MediaElement controls.

This is a follow-up to the previous fix in [45146], which didn't work as expected.

Props ryokuhi.
Merges [45576] to the 5.2 branch.
Fixes #47543. See #40843.

Note: See TracTickets for help on using tickets.