Skip to content
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

Add EQL glyph to EuiIcon #4110

Merged
merged 9 commits into from
Nov 12, 2020
Merged

Add EQL glyph to EuiIcon #4110

merged 9 commits into from
Nov 12, 2020

Conversation

marrasherrier
Copy link
Contributor

@marrasherrier marrasherrier commented Oct 5, 2020

Summary
This PR adds an EQL gylph to EuiIcon. The EQL icon appears in the 'Event Correlation' card, which is part of the 'Select a rule type' step of rule creation in the security app.

Screen Shot 2020-11-04 at 12 03 05 AM

EQL icon in dark and light theme
Screen Shot 2020-11-11 at 5 43 45 PM
Screen Shot 2020-11-11 at 5 43 35 PM

Design
Screen Shot 2020-11-11 at 5 45 14 PM

Based off of:
image

EQL icon near other icons
Screen Shot 2020-11-11 at 5 43 49 PM

Checklist
[x] Check against all themes for compatibility in both light and dark modes
[ ] Checked in mobile
[x] Checked in Safari and Firefox
[ ] Props have proper autodocs
[x] Added documentation
[ ] Checked Code Sandbox works for the any docs examples

Added or updated jest tests
[x] Checked for breaking changes and labeled appropriately
[x] Checked for accessibility including keyboard-only and screenreader modes
[x] A changelog entry exists and is marked appropriately

@marrasherrier marrasherrier changed the title Add EQL glyph to EuiIcon # Add EQL glyph to EuiIcon Oct 5, 2020
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4110/

@cchaos
Copy link
Contributor

cchaos commented Oct 5, 2020

Nice @marrasherrier ! Can you paste a screenshot of the design file with the pixel grid behind the icon? The strokes don't look like they're fully 1px thick at the 16x16 size compared to the other glyphs.

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4110/

Copy link
Contributor

@elizabetdev elizabetdev left a comment

Choose a reason for hiding this comment

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

Thanks, @marrasherrier!

I'll leave the design review for @cchaos. But I noticed a few things that can be improved in your code.

src/components/icon/assets/eql.js Outdated Show resolved Hide resolved
src/components/icon/assets/eql.js Outdated Show resolved Hide resolved
@cchaos
Copy link
Contributor

cchaos commented Oct 6, 2020

I have one suggestion on the design of the icon. It wasn't until you pasted the screenshot of the artboard version that I noticed the detail of using your hexagon shape in the center. This is a detail that gets lost even at the 24x24 version but is essential to the understanding that this is Security specific. Have you tried an option where the hexagon is the outermost shape instead of a simple circle?

We also have quite a few magnify glass icons not just in glyphs but app icons as well, so I think having the hexagon be the dominant shape here will really set it apart from all the other magnify options.

Screen Shot 2020-10-06 at 10 22 41 AM

@marrasherrier
Copy link
Contributor Author

marrasherrier commented Oct 29, 2020

Hi Caroline, thanks for this feedback!!
I wanted to keep the icon consistent with this existing EQL icon:
eql

But, I think there is a way I can differentiate it from the other icons, make the hexagon stand out more, and still reference this existing icon. Will update soon.

@marrasherrier
Copy link
Contributor Author

@cchaos @peluja1012 thoughts on the new design?

@peluja1012
Copy link

@marrasherrier I like the prominent hexagon shape and the similarity with the existing icon. 👍

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4110/

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

The simplification definitely helps to make the "node" portion stand out better 👍

My only comment would be to check your alignment to the pixel grid. It's not bad, but could be crisper on non-retina screens. Here's a screenshot:

image

But I'll approve anyway and let you decide how you want to handle that bit.

@marrasherrier
Copy link
Contributor Author

The simplification definitely helps to make the "node" portion stand out better 👍

My only comment would be to check your alignment to the pixel grid. It's not bad, but could be crisper on non-retina screens. Here's a screenshot:

image

But I'll approve anyway and let you decide how you want to handle that bit.

@cchaos thanks! I updated it to be better aligned. :)

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_4110/

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

Successfully merging this pull request may close these issues.

5 participants