[EuiFilePicker] Use alert icon when isInvalid#6678
Conversation
isInvalid stateisInvalid
isInvalidisInvalid
|
I'm gonna be a little pedantic… Does it make more sense here to use an Just thinking about the guidelines we gave to folks in that PR from a couple weeks ago that the Though maybe that @MichaelMarcialis tagging you on this question as well. I'll roll with what y'all think is best. |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6678/ |
|
Every other form icon on https://elastic.github.io/eui/#/forms/form-controls uses the |
597c4d1 to
a164a12
Compare
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_6678/ |
|
@breehall do you mind reviewing this PR sometime today? Thanks! |
breehall
left a comment
There was a problem hiding this comment.
✅ Approved. I used different combinations of props within the Display Toggles for EuiFilePicker in the PR preview to confirm these changes.
EUI `77.0.0` ➡️ `77.1.1` ## [`77.1.0`](https://github.com/elastic/eui/tree/v77.1.0) - Updated `EuiDatePicker` to display a warning icon and correctly set `aria-invalid` when `isInvalid` is passed ([#6677](elastic/eui#6677)) - Updated `EuiFilePicker` to display an alert icon when `isInvalid` ([#6678](elastic/eui#6678)) - Updated `EuiTextArea` to display an alert icon when `isInvalid` ([#6679](elastic/eui#6679)) - Updated `EuiTextArea` to support the `isLoading` prop ([#6679](elastic/eui#6679)) - Updated `EuiComboBox` to display a warning icon and correctly set `aria-invalid` when `isInvalid` is passed ([#6680](elastic/eui#6680)) **Bug fixes** - Fixed `EuiAccordion` to not set an `aria-expanded` attribute on non-interactive `buttonElement`s ([#6694](elastic/eui#6694)) - Fixed an `EuiPopoverFooter` bug causing nested popovers within popovers (note: not a recommended use-case) to unintentionally override its panel padding size inherited from context ([#6698](elastic/eui#6698)) - Fixed `EuiComboBox` to only delete the last selected item on backspace if the input caret is present ([#6699](elastic/eui#6699)) --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Jon <jon@elastic.co>
Summary
As part of my on-call work this week, I'm finishing up some older backlog work, in this case #2017.
Before
After
Non-large:
QA
General checklist
- [ ] Added or updated jest and cypress testsThere aren't really any for EuiFilePicker. We should remedy this when we switch to Storybook