Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
Bartik theme
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Feb 2015 at 19:11 UTC
Updated:
10 Mar 2015 at 23:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
attiks commentedComment #2
rainbowarray+1 to this change. This will make it much easier for somebody to use sizes once there is a UI for that.
Are there any tests that need to be modified due to this change?
Comment #3
attiks commentedNo test changes needed
Comment #4
idebr commentedComment #5
wim leersThen we should update Bartik's CSS accordingly?
Comment #6
attiks commentedThere's nothing to update, the mobile breakpoint is never used inside the css, the reason it exists inside bartik.breakpoints.yml is to be able to use it for responsive images
Comment #7
wim leersAlright :) Even better. Sorry for the mistake!
(I'm not at my computer, couldn't quickly check.)
Comment #8
rainbowarrayI just tested this on simplytest.me. I set up a responsive image style using thumbnail for the mobile breakpoint. When I set article image to use the responsive image style and then created an article with a test image, the source element for the mobile breakpoint had an empty media attribute.
It seems like if the media attribute is empty, then it shouldn't be added to the source element.
Comment #9
attiks commented#8 New issue created #2424727: Do not output empty media attribute for source tags
Comment #10
attiks commentedComment #11
attiks commentedComment #12
rainbowarrayNow that #2424727: Do not output empty media attribute for source tags is in, I tested this again, and this works well. Nice simple change.
Comment #13
alexpottCommitted 09dbe27 and pushed to 8.0.x. Thanks!