-
Notifications
You must be signed in to change notification settings - Fork 841
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
Error & Warning Icons #6550
Error & Warning Icons #6550
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_6550/ |
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.
Thanks, @MichaelMarcialis. LGTM! 🎉
Don't forget to add the alert
icon updates and the new error
icon to the Figma library.
If ya'll agree with those considerations, let me know and I'd be happy to write up a separate issue for them.
An issue would be welcome. So we can come up with a plan to deprecate crossInACircleFilled
and to evaluate if we should rename or not the alert
icon to warning
.
Preview documentation changes for this PR: https://eui.elastic.co/pr_6550/ |
@miukimiu I'm assuming this will be available in EUI version 74.0.2. Is that right? |
## Summary `eui@74.0.1` ⏩ `eui@74.1.0` ___ ## [`74.1.0`](https://github.com/elastic/eui/releases/tag/v74.1.0) - Added new `EuiSkeletonText`, `EuiSkeletonTitle`, `EuiSkeletonCircle`, and `EuiSkeletonRectangle` components ([#6502](elastic/eui#6502)) - Updated `EuiSuperSelect` screen reader instructions to be more specific ([#6549](elastic/eui#6549)) - Added `error` and updated `alert` glyphs to `EuiIcon` ([#6550](elastic/eui#6550)) - All `EuiSkeleton` components now accept an `isLoading` flag and `children`, which automatically handles conditionally rendering loading skeletons vs. loaded content (`children`) ([#6562](elastic/eui#6562)) - All `EuiSkeleton` components now accept a `contentAriaLabel` prop, which more meaningfully describes the loaded content to screen readers ([#6562](elastic/eui#6562)) - Updated `EuiPopover` screen reader instructions for mobile and click behaviors ([#6567](elastic/eui#6567)) **Bug fixes** - Fixed `EuiCard` to ensure `onClick` method only runs once when `title` contains a React node ([#6551](elastic/eui#6551)) **Deprecations** - Deprecated `EuiLoadingContent` - use `EuiSkeletonText` instead ([#6557](elastic/eui#6557)) --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
I've added a new
error
icon and modified the existingalert
icon, as part of some planned updates to how we present and distinguish between errors and warnings on Kibana visualization. Currently, we tend to use thealert
icon for both warnings and errors across Kibana. The inclusion of a newerror
icon is to help remedy that.Additionally, the existing
alert
icon was part of a subset of icons that utilized a 1.5px stroke, rather than a 1px stroke like most of our other icons. I've corrected that as part of the update to thealert
icon.As a follow-up to this PR, I think it may be wise to consider the following:
crossInACircleFilled
icon for two reasons: 1) It's very close to the newerror
icon, and 2) it perpetuates a problematic pattern where some EUI icons offer regular/circled/filled variants, which often lead to a lot of interface inconsistencies. I imagine it can be replaced with either a regularcross
orerror
icon, as the context dictates.alert
icon's name towarning
. Doing so will make it clearer to developers that we have specific icons to use for error and warning cases.If ya'll agree with those considerations, let me know and I'd be happy to write up a separate issue for them.
CCing @drewdaemon, for iconography in elastic/kibana#149262.
General checklist