Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
CSS
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Feb 2015 at 12:30 UTC
Updated:
1 Sep 2015 at 09:44 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #1
mortendk commentedComment #3
andypostfix test and usage
Comment #5
martin107 commentedImages look good to me.
I have a small nit-pick... that is these could be made smaller in size.
I am only familiar with inkscape - there is an option to save plain svg, which removes the extra padding.
Is there an option in Sketch to do the same?
The extra stuff in the svg file I can see starts with
attrubute xmlns:sketch="http://www.bohemiancoding.com/sketch/ns
and also this stuff could be removed.
<-- Generator: Sketch 3.2.2 (9983) - http://www.bohemiancoding.com/sketch >
title>feed title
des Created with Sketch. desc
defs> defs
Does D8 have a policy towards poly filling SVGZ files ?
all I could find is that area was
#2092245: SVGZ isn't served with correct encoding
which suggests not yet!
Comment #6
mortendk commentedComment #7
mortendk commentedCleaned up sketch output (run this in the terminal:

defaults write com.bohemiancoding.sketch3 exportCompactSVG -bool yes)lets not add more to misc than nessesary, so only one rss icon. I went with the lighter version that's the smaller visual "no box option" - we can alway bikeshed over that ;)
test is updated for images to use druplicon.png instead of feed-icon.png
who's maintainer over rss icons & how they look ?
Comment #8
corbacho commentedIs there any chance that people wouldn't recognize the RSS icon ? Probably millennials would think that it looks like a wi-fi icon.
As a reference, the RSS board voted in 2006 that this logo is the official "Common feed icon":

They link to the official http://www.feedicons.com/ where can be downloaded in all formats, including SVG (that I attached)
yes yes.. looks ugly, but at least is recognizable.
If we are taking "artistic licence" to modify the RSS logo (I agree here), at least should we use the orange color somewhere?
and this is a GUI tool to squeeze the size of the SVG as much as possible:
https://github.com/jakearchibald/svgomg
The patch otherwise is correct, and removes all occurrences of "feed.png" I found in core.
Comment #9
corbacho commentedI couldn't attach the SVG logo, let's open a feature-request :)
#2427443: Allow SVG files as attachment
Comment #10
mortendk commentedlet's just use the official so we don't go into bikeshed over that. this patch is all about changing it to an svg. a theme can then do whatever it wants :)
Comment #11
mortendk commentedNope - lets stop put ugly in our own loved project ;)
Took the original icon changed the color to orange (#FF9900)

screenshot
Comment #12
mortendk commentedComment #13
mortendk commentedComment #14
manuel garcia commentedLooks good to me!

Before:
After:

Comment #15
alexpottCan someone attached and update this CR - https://www.drupal.org/node/2384159?
Comment #16
mortendk commented@alex its not part of librecons as theres no feed-icon in that set ?
Comment #17
corbacho commentedLooks awesome, better than the "official" one, Thumbs up Morten :)
I was reading about "libricons", for reference these 2 links:
This is the "official" thread of libricons #2032773: Use Libricons (icon font) in Seven, consider using it more broadly in core
But actually, the patch that went in, containing the SVG icons is this one: #1963886-106: Use HiDPI icons in the toolbar
Based on these 2 facts:
* Libricons is not a font of icons, and there is no reference of "libricon" in the whole Drupal core base, and no documentation. Just now, It's just a set of 16x16 SVG files in /misc/icons/xxxxxx (where xxxxx is the HEX color)
* Messages icons were modified (coloured) and committed to #2075949: Add Libricons to messages
I would say, that we could put the feed.svg in misc/icons/FF9900/feed.svg ?
Drupal core misc icons should be a set of icons that follow certain pattern, (mono-color 16x16 svg icons)
But it would be short-sighted that only icons designed by ry5n could go into core.
What's your opinion?
Comment #18
mortendk commentedSounds cool with me :)
Comment #19
corbacho commentedCool! I think is reasonable
Related #2252721: [policy] Document Libricon semantics, including examples
Lewis would have an opinion... but I think he still is in Latin America. I will ping Bojhan and ry5n in twitter, to see if they have something against.
Comment #20
mortendk commentedcool I'm gonna finish up the feed icon as CSS stuff then
yup Lewis is on the beach somewhere
Comment #21
corbacho commentedLewis pointed out that there is a
misc/icons/License.md:that reflects the License of the icons in that folder.
This is getting too complicated. This would need its own issue.
Maybe we should leave the feed icon where it is now, in misc/feed.svg.
That also give us freedom to make a 2-colour feed icon: Orange+White. The current feed.svg icon is transparent in the center.. so IMO it doesn't look that good in all backgrounds.
Comment #22
mortendk commentedcheck im gonna Upload the Source files as Well. do we have a place for that or should i just dump em On github ?
Comment #23
mortendk commentedok a new versions is up on github so people can hammer on em gpl makes little sense for graphics ;)
https://github.com/mortendk/drupalicons
icons gonna add the svg to the patch


Comment #24
mortendk commentedpatch added with the icon in :
Comment #25
corbacho commentedGreat!, yep I think github is perfect
It's not loading the SVG for me. If I try to open the SVG with Chrome directly, Chrome validates the SVG and outputs this error:
http://drupal8.dev/core/misc/feed.svgAlso I see that the SVG source code has a lot of "weird" things from Sketch, when I pass it through SVGO y breaks the SVG.
I haven't used Sketch before, but maybe you can play with some settings (like Flatten shapens) https://medium.com/sketch-app/harnessing-vector-awesomeness-in-sketch-3c...
But! If I take the feed.svg directly from your github it works in Chrome, but still, can't be optimized by SVGO*
Could you export SVG from Sketch, in a way that it doesn't have any "translate". SVG markup should be straight paths/shapes. I tried also opening in Illustrator, and re-save it.. but it breaks too.
Here is a tweet, it seems Sketch should be able to "flatten" it
* I use this https://github.com/svg/svgo-gui
Comment #26
Jeff Burnz commentedI ran it through an optimiser to get it to work - http://petercollingridge.appspot.com/svg-editor, or maybe morten can run that fancy Sketch command again :)
Is anyone testing this in IE9-11?
Comment #27
mortendk commentedauch theres a lot of crap with this - gonna see if i can get sketch to cleanup nicely / use a hammer.
btw do we have fallbacks on ie9 svg icons ?
were using modinizer so we could do a
.no-svg feed-icon{ background-image: i-suck-at-svg-feed.png }Comment #28
Jeff Burnz commentedIE9 svg should work OK, afaict on my previous testing the only issue is with scaling, it can get a bit wonky, but I think with viewBox, height and width it "should" be OK.
Comment #29
mortendk commented"should" works for me on ie9 ;)
ok gonna see if i can clean this icon's svg meta crap up a bit more
Comment #30
corbacho commentedwhat Jeff said.
IE9 supports SVG, and if a browser doesn't support SVG, Drupal8 doesn't need to provide fallback, since #2286601: [policy] Drop support for browsers that don't support SVG
Comment #31
mortendk commentedok so can somebody please explain why/if its a crime against [something-something] to have the "sketch" crap in the graphic file ? when svg begins to use maskes then stuff gets a bit tricky "to clean" using svgo, will kill the file - If we have some restrictions on which kinda app we wanna use, or if theres meta data, then we need to write that down somewhere.
Anyways i removed the sketch stuff by hand, i personally think its silly to use time on - its graphic's.
Comment #32
mortendk commentedthere hand cleaned & with a kiss :)
Comment #33
jwilson3Here is a much-reduced SVG, based on the original from feedicons.com.
working on a patch now.
Comment #34
jwilson3Comment #35
jwilson3Screenshots for IE9. Things do look a bit blurry but this could be either because I used browserstack or it could be IE9 SVG rendering.
IE9: Before

IE9: After

Comment #36
jwilson3Comment #37
jwilson3Comment #38
Jeff Burnz commented#31 one of the earlier icons will work when you paste in the actual SVG code, but used in an image element will not work. Illustrator baulked on some of the sketch icons and mangled them on save as, after running through an optimiser they worked (both in image tag and Illustrator). This was pretty quick and dirty testing, but it did highlight to me that the code matters, a lot, and an image might work in image/embed element, but not another way, etc. The whole SVG thing does my head in a bit but I do have Sketch, Illustrator and Inkscape so I could do some heavy testing and investigations on this, I think you are right that we need some documentation and standards on SVG, even we could have tests for them since they are just code (e.g. has width, height, viewBox attributes).
Comment #39
mortendk commented@jeff yup exactly. What we should do is figure out what the requirements are for svg icons in core. and yes the code matters ;) But what im afraid of is that we end up with a bunch of rules that make sense for coders, but the graphic designer will go "wtf drupal, you can f* off" if we dont level the playing fields in a way that would be normal for a graphic designer to work.
Svg in some ways feels still a bit young to me, kinda like in the good old days when we had jpeg2000 & all that ;)
Anyways lets get this icon thing rolling & look into making sweet stuff with inline css etc, as wilson was about to scope creep the "rss icon as a css bg" issue (shakes fist)
Do we do a meta issue the SVG reguirements ?, so we dont clog up this one forever with a bunch of geeks debating vectors & stuff
Comment #40
mortendk commentedi created a followup meta discussion to figure out the overall guidelines #2433761: [meta] svg guidelines / requirements
Comment #41
jwilson3--
Comment #42
corbacho commentedReturning to the scope of this issue
Here is some screenshots, all in IE9. I see in morten's design the white stripes are not totally centered.
I like that jwilson's version is a simplified version, but still respects the shapes of the official logo.
I think, the same way that Drupal 8 will have their JS libraries minified, we should also have our SVG optimized, with all the whitespace removed and sacrifice readability.
It's 14% difference in the weight, in this case:
Let me put this RTBC, but mortendk could give his final approval
About the whitespace removal, we can discuss it in the guidelines issue, and apply it to all SVGS later on.. Let's ship this one already.
Comment #43
mortendk commentedoooh im not to stop this progress - fire away! RTBY yo
Comment #44
wim leersThis will conflict with #2426967: Feed icon should be a CSS background image not a image file. Since that one is more complex, postponing this on that one.
Comment #45
jwilson3Curious how the weight of the SVG in #42 compares to the existing PNG feed-icon plus bytes of the
<img>tag its embedded in.Comment #46
andrewmacpherson commentedI found a GPL Feed-icon.svg available from Wikimedia Commons.
Comparing it with Morten's drupalicons feed.svg...
The first 2 points are just observations - I don't really care whether it's flat design or a gradient ;-)
The remaining points are worth considering, to see how we might we improve our SVG. I don't know what the pros/cons or performance of the mask approach are, but the Wikimedia Commons icon is much shorter source code.
Comment #47
andrewmacpherson commentedAnother comparison point, after the ones in #46.
Morten's drupalicons feed.svg contains
<title>and<desc>elements; the Wikimedia Commons icon, and Corbacho's code from #42 do not.We can use
<title>and<desc>elements for accessibility, usingaria-labelledbyandaria-describedbyrespectively. I've updated #2433761: [meta] svg guidelines / requirements with more detailsIf we make use of these SVG elements, they'll need to be localizable.
Comment #48
wim leersInteresting!
Does that mean our existing SVGs are a problem localization-wise?
Comment #49
andrewmacpherson commented@wim Only if the SVG has text elements inside, such as the
<title>element.The
aria-labelledbypattern described at #2433761: [meta] svg guidelines / requirements isn't the only way to provide alternative text for an icon. We could still do it as aspan.visually-hidden.Comment #50
lewisnymanOur existing SVG's don't use these elements and I would suggested avoiding them so we don't run into these localisation issues.
Comment #51
andypostParent issue fixed
Comment #54
andypostusing svg in css has issues only IE8 and android 2.3 so we are fine
http://caniuse.com/#search=svg
Comment #55
mgiffordThis looks RTBC to me. Nice how much crisper it looks when it is zoomed in. The old PNG just looked horrible in comparison.
I was thrown off at first by the druplicon.png, but that's I'm guessing we're just switching a reference to another file.
Comment #56
wim leers#49: thanks for the info!
#50: agreed!
#55: indeed.
I agree that this is RTBC.
Comment #57
alexpottNeeds a reroll.
Comment #58
wim leersComment #59
pjbaertDid the reroll
Comment #60
koence commentedTested re-roll.
svg-file is shown.
I think this can go back to rtbc?
Comment #61
koence commentedDeleting tags.
Comment #62
alexpottThis is only a front-end change (image and css) and therefore permitted during beta. Committed 457517f and pushed to 8.0.x. Thanks!
Comment #64
mortendk commentedHurray!
Comment #65
wim leersNice one :) Thank you, Morten!
Comment #66
corbacho commented:D good
Comment #67
jwilson3I'm sooo happy to see this and #2426967 get in! The Themer Experience in D8 is amazing and this small piece is the cherry on top.
Comment #68
mortendk commentedso many highfive.svg in this thread :)