Skip to content

V4 hamburger fix2 #20329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 12, 2016
Merged

V4 hamburger fix2 #20329

merged 2 commits into from
Sep 12, 2016

Conversation

patrickhlauke
Copy link
Member

@patrickhlauke patrickhlauke commented Jul 19, 2016

successor to #20260

closes #20234

for comparison: current v4-dev (top) using the unicode character, and the CSS SVG background image (bottom)

hamburglar

remove current HTML-based symbol, add any missing aria-* attributes
@patrickhlauke
Copy link
Member Author

prototype fiddle to test out https://jsfiddle.net/nu5ejdy3/7/ - only issue seems to be Edge and IE11 rendering the svg a bit too...harshly. looks good in chrome/firefox though

@patrickhlauke
Copy link
Member Author

rendering of the SVG icon in chrome, firefox, edge and IE11 on Win10

hamburglar2

@cvrebert
Copy link
Collaborator

I believe the conclusion from #17222 was that SVGs shouldn't be base64-ed, since it increases their size.

@XhmikosR
Copy link
Member

Agreed with @cvrebert, but just to verify, @patrickhlauke: isn't the base64 version larger?

@patrickhlauke
Copy link
Member Author

patrickhlauke commented Jul 20, 2016

fair enough, i'll admit to not knowing all the ins and outs of data URIs. optimized the source SVG and url-encoded it ... https://jsfiddle.net/nu5ejdy3/9/

original SVG:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><rect y="2" width="16" height="1"/><rect y="7" width="16" height="1"/><rect y="12" width="16" height="1"/></svg>

@patrickhlauke
Copy link
Member Author

force-pushed the change to encoding

@patrickhlauke
Copy link
Member Author

@mdo @cvrebert any more thoughts on this?

@mdo
Copy link
Member

mdo commented Jul 26, 2016

Haven't had a chance to review much else with trying to wrap up the Alpha 3 stuff. Will peep when I can after that gets released.

@patrickhlauke
Copy link
Member Author

ping @mdo

@patrickhlauke
Copy link
Member Author

alternatively, there's a neat set of icons https://github.com/danklammer/bytesize-icons that we could look at using (also for other things like the X close icons)

@bardiharborow
Copy link
Member

@patrickhlauke, aren't X close icons just &times; these days?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants