[EuiDatePickerRange] & [EuiSuperDatePicker] Fix up disabled and isInvalid states#5918
Conversation
- Updated delimiter to an sortRight icon and swapped for alert when `isInvalid` - Ensured the whole input gets red border when `isInvalid`
…iDatePickerRange
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5918/ |
1Copenut
left a comment
There was a problem hiding this comment.
I have one comment for now that hopefully quiets the TypeScript error you were asking about. I'll finish reviewing the component for keyboard and screen reader changes on Monday morning.
|
@cchaos I'm afraid I've reached the end of my helpful suggestions for TypeScript regarding the errors you're seeing. On the other hand, I was able to test the new top-level props with VoiceOver and Safari. I confirmed the |
|
@cchaos Are you assigning this to me to investigate the Typescript 'help' issues or for a full review? |
|
Did a quick review pass and this LGTM with only 1 question about |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5918/ |
cee-chen
left a comment
There was a problem hiding this comment.
I'm OOO all next week so going to go ahead and pre-approve as my 1 comment is minor/not a blocker. Feel free to address or merge, either way!
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5918/ |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5918/ |
EuiDatePickerRange
isInvalidanddisabledas top level propssortRighticon and swapped foralertwhenisInvalidisInvalidThe following screencasts shows the range starting with
isInvalidanddisabledon individual components to show how those will take precedence over the top level one passed in:Before
CleanShot.2022-05-20.at.14.41.12.mp4
After
CleanShot.2022-05-20.at.14.37.03.mp4
And specifically the
isInvalidstate fixes #4612, and fixes a few items on #2017EuiSuperDatePicker
This one now gets styled similarly to the basic EuiDatePickerRange.
Before
After



Checklist
[ ] Checked for breaking changes and labeled appropriately