-
Notifications
You must be signed in to change notification settings - Fork 843
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
Adds bug, flag, and heart icons. Updates alert icon. #1887
Conversation
60f1b77
to
ff3fe45
Compare
ff3fe45
to
9b3903f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/components/form/form_control_layout/__snapshots__/form_control_layout.test.js.snap
Show resolved
Hide resolved
@ryankeairns The fuzzyness happens when not on a ultra-dense (retina) style monitor. You'd need an older monitor to test this the actual render, but to mitigate these from happening, aligning as much to the pixel grid as possible will ensure it's as crisp as possible. The alert screenshot you showed (I'm guessing older is on the right?) does look odd. I'm not sure why the right bottom point of the triangle was further out. I had to glance at the Sketch file to look at the pixel alignment and the alert is fine, I wish the exclamation point could be more inside the pixel line instead of straddling it like this: As for the new icons they all look good except that the flag could use a nudge to the left: |
Also for your recommendation:
You should recommend that they just use the |
@cchaos Such is the life of a 1px outline-based icon set :) Good catch on the flag! Initially, I was shaving off bytes by building these as lines as opposed to shapes, but that visually got away from our existing pattern of 1 and 2 pixel padding around the glyph itself. It also presented more challenges in handling the Sketch symbol color overrides, so I went with converting to outlines. |
The thought was that they could differentiate the two better by using one as an informational-level warning and purposely not have two with exclamation points. I'll re-word that to state the options more clearly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Thx!
jenkins test this |
@Avinar-24 @alexwizp Attached are the SVG files for the two icons we've decided should not be included with EUI (as noted above). They can be added to Kibana globally, or to the plugin code as you see fit. |
Closes #1871
Summary
#1871 requests several icons:
This PR adds the following news icons to EUI which we feel are most re-usable/common:
For bomb and fire, I've created the svg icons and will open a separate PR on the Kibana side to add those. In the upcoming release of EUI, functionality will exist allowing you to use any icon with
EuiIcon
. We felt these two were better suited to live externally as we're also trying to keep our ever-expanding icon library manageable.For the exclamation-triangle, we recommend using the existing alert icon
For the exclamation-circle, we recommend using the existing iInCircle icon
This better differentiates it from the exclamation-triangle icon while conveying a less severe, "informational", meaning like making a note.
⚖️ Side note: I updated the svg for the alert icon since the right corner was a little askew
Here is what it looked like before
Checklist
Any props added have proper autodocsThis was checked for breaking changes and labeled appropriatelyThis was checked against keyboard-only and screenreader scenariosThis required updates to Framer X components