-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EuiSuperDatePicker] Improve
Absolute
tab input UX further (#7341)
- Loading branch information
Showing
7 changed files
with
185 additions
and
24 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/components/date_picker/super_date_picker/date_popover/_absolute_tab.scss
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
.euiSuperDatePicker__absoluteDateFormRow { | ||
padding: 0 $euiSizeS $euiSizeS; | ||
|
||
/* A bit of a visual trickery to make the format "hint" become an "error" text. | ||
NOTE: Normally reordering visually (vs DOM) isn't super great for screen reader users, | ||
but as the help text is already read out via `aria-describedby`, and the error text | ||
is read out immediately via `aria-live`, we can fairly safely prioritize visuals instead */ | ||
.euiFormRow__fieldWrapper { | ||
display: flex; | ||
flex-direction: column; | ||
}; | ||
|
||
.euiFormControlLayout { | ||
order: 0; | ||
} | ||
|
||
.euiFormHelpText { | ||
order: 1; | ||
} | ||
|
||
.euiFormErrorText { | ||
order: 2; | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Improved the UX of `EuiSuperDatePicker`'s Absolute tab for users manually typing in timestamps | ||
- Updated `Eui18n`s with multiple `tokens` to accept dynamic `values` |