Opened 6 years ago
Closed 6 years ago
#44664 closed defect (bug) (fixed)
Twenty Fourteen: Video play icon alignment
Reported by: | celloexpressions | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.0.3 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Bundled Theme | Keywords: | good-first-bug has-patch has-screenshots needs-testing commit fixed-major |
Focuses: | ui | Cc: |
Description
Twenty Fourteen provides custom styling for the MediaElement.js players. It appears that the updates to MediaElement.js in a recent release caused the play icon (which is a Genericons font icon) in embedded video players to become substantially misaligned. This could be seen in the editor or in a video widget with a locally-uploaded video.
This seems to be fixable by adding position: relative
to .hentry .mejs-overlay-button, .widget .mejs-overlay-button {
in the Twenty Fourteen stylesheet. This allows the icon to be absolutely positioned relative to the button container, as this worked previously.
If someone has time to verify this issue, document screenshots, and turn this into a patch, this should be a relatively straightforward fix.
Attachments (7)
Change History (23)
@
6 years ago
Removed the margin from the .mejs-overlay-button for both hentry and widget as it was misaligning the icon from being centered vertically and horizontally. Changed the icon position to relative instead of absolute which the issue creator advised as well.
This ticket was mentioned in Slack in #core-themes by mmaumio. View the logs.
6 years ago
#5
@
6 years ago
Twenty Fourteen is already being updated in 5.0 for Gutenberg, and will likely be touching this code anyway. We need to be better about grouping bundled theme updates - @laurelfulford do you think you can take care of this very small adjustment with the other 5.0 changes?
This ticket was mentioned in Slack in #core by sergey. View the logs.
6 years ago
#9
follow-ups:
↓ 10
↓ 12
@
6 years ago
- Keywords needs-testing added
Thanks for reporting this issue, @celloexpressions, and for the patches, @chriseverson and @mmaumio! I'm sorry I couldn't get to this earlier in the 5.0 release.
Reviewing the patches, 44664.diff looks like it is of a different file (package-lock.json) but video_icon_alignment.diff fixes the issue for me on the front-end.
44664.3.patch is basically a copy-paste of that fix into the editor styles, so it's fixed there as well. The new block-based editor doesn't currently have MediaElement.js enqueued into it, so you can only see this issue when using the classic editor. However, these styles are also pulled into the block-based editor, so if MediaElement.js is added down the road, it should fix it there too.
#10
in reply to:
↑ 9
@
6 years ago
It's great to hear the issue has been fixed.
Thanks for taking care of it :)
@laurelfulford
#12
in reply to:
↑ 9
@
6 years ago
- Keywords commit added
Replying to laurelfulford:
44664.3.patch is basically a copy-paste of that fix into the editor styles, so it's fixed there as well. The new block-based editor doesn't currently have MediaElement.js enqueued into it, so you can only see this issue when using the classic editor. However, these styles are also pulled into the block-based editor, so if MediaElement.js is added down the road, it should fix it there too.
44664.3.patch LGTM
#15
@
6 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
I was able to verify this as an issue. The above patch has the suggested fix, which solves things on the frontend, but will still need updates for the editor. Hoping to have those inbound shortly.