-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EuiDatePicker] Add alert icon when
isInvalid
(#6677)
* Add isInvalid icon and icon offset affordance * [tech debt] Convert `EuiDatePicker` to a function component - so we can use hooks later on for invalid/EuiValidatableControl work * [setup] Add validatable control hook that allows controlling `input`s that aren't direct children * Remove need for extra `.euiFieldText-isInvalid` class - with the new `useEuiValidatableControl` hook, the datepicker component now correctly sets `:invalid` on the underlying input * Fix `EuiDatePickerRange` invalid states - delimiter should stay an arrow now that each picker input displays its own warning icon - underline style should be removed when disabled/readonly (which matches other basic EUI field/input components) * changelog
- Loading branch information
Showing
11 changed files
with
497 additions
and
438 deletions.
There are no files selected for viewing
487 changes: 235 additions & 252 deletions
487
src/components/date_picker/__snapshots__/date_picker.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.