Repository navigation
Error & Warning Icons - #6550
Conversation
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6550/ |
elizabetdev
left a comment
There was a problem hiding this comment.
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 `[email protected]` ⏩ `[email protected]` ___ ## [`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 <[email protected]>
Summary
I've added a new
erroricon and modified the existingalerticon, as part of some planned updates to how we present and distinguish between errors and warnings on Kibana visualization. Currently, we tend to use thealerticon for both warnings and errors across Kibana. The inclusion of a newerroricon is to help remedy that.Additionally, the existing
alerticon 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 thealerticon.As a follow-up to this PR, I think it may be wise to consider the following:
crossInACircleFilledicon for two reasons: 1) It's very close to the newerroricon, 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 regularcrossorerroricon, as the context dictates.alerticon'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