Skip to content

Replace some sidebar icons with Font Awesome#1830

Merged
siggy merged 3 commits intomasterfrom
siggy/iconz
Oct 31, 2018
Merged

Replace some sidebar icons with Font Awesome#1830
siggy merged 3 commits intomasterfrom
siggy/iconz

Conversation

@siggy
Copy link
Member

@siggy siggy commented Oct 30, 2018

This replaces a couple of the MaterialUI icons introduced in #1776 with
their original counterparts in Font Awesome, but wrapped in a MaterialUI
Icon tag. Also fix Linkerd logo padding in sidebar.

Part of #1781.

Signed-off-by: Andrew Seigner [email protected]

screen shot 2018-10-30 at 1 59 57 pm

This replaces a couple of the MaterialUI icons introduced in #1776 with
their original counterparts in Font Awesome, but wrapped in a MaterialUI
`Icon` tag. Also fix Linkerd logo padding in sidebar.

Part of #1781.

Signed-off-by: Andrew Seigner <[email protected]>
@siggy siggy added the area/web label Oct 30, 2018
@siggy siggy self-assigned this Oct 30, 2018
@siggy siggy requested a review from rmars October 30, 2018 21:04
@siggy
Copy link
Member Author

siggy commented Oct 30, 2018

@rmars Per your comment in #1781 (comment), I browsed through the MaterialUI and Font Awesome icons, and couldn't find better fits than what we had before the MaterialUI switch, so I re-added the Font Awesome icons we had for Tap and Top. The Tap microscope now matches the links on the Tap page.

For Service Mesh, this was the best I could find, which I don't think is as good as the existing Cloud icon:
https://fontawesome.com/icons/vector-square?style=solid

Copy link

@rmars rmars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet! thanks for doing this. it's great to see tap as the same icon in both places.

I noticed that the material icons are slightly smaller than the font awesome icons. we should probably fix that disparity, otherwise it'll look slightly off:

screen shot 2018-10-30 at 4 07 30 pm

Signed-off-by: Andrew Seigner <[email protected]>
@siggy
Copy link
Member Author

siggy commented Oct 31, 2018

@rmars modified the two font awesome icons and one material icon to be the same width as most of the others. the material icons vary slightly by height and width, so the resources icon is still a bit smaller, and the cloud icon has less height. let me know what you think...

before

before

after

after

Copy link

@rmars rmars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌟 🚀 🔬

paddingRight: `${contentPadding}px`,
},
shrinkIcon: {
fontSize: "20px",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit: can we reduce this ever so slightly, to 18px?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

size updated, also bumped the padding to make the icons align through their centers:

screen shot 2018-10-31 at 1 18 55 pm

Copy link

@rmars rmars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔬 🔬 🔬

@siggy siggy merged commit 1eb93b6 into master Oct 31, 2018
@siggy siggy deleted the siggy/iconz branch October 31, 2018 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants