-
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
[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/ |
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.
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/ |
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.
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/ |
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.
LGTM!
Preview documentation changes for this PR: https://eui.elastic.co/pr_5918/ |
EuiDatePickerRange
isInvalid
anddisabled
as top level propssortRight
icon and swapped foralert
whenisInvalid
isInvalid
The following screencasts shows the range starting with
isInvalid
anddisabled
on 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
isInvalid
state 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