SuperDatePicker tweaks to make it selection more obvious#2049
SuperDatePicker tweaks to make it selection more obvious#2049cchaos merged 14 commits intoelastic:masterfrom
Conversation
|
LGTM. Only one minor thing, I'm not sure we need the colon next to |
|
I personally prefer the title separate from (on top of) the tabs 😬 As Andrea noted, it's pretty tight with the title in there and it sets a precedent of having the tab area share other content, which I don't think we've done elsewhere. |
thompsongl
left a comment
There was a problem hiding this comment.
I'll wait for design agreement here before doing my review
|
@ryankeairns The problems I have with using the default popover title are:
Do you have any other suggestions besides either using the popover title or putting the title inline with the tabs? |
|
@cchaos Maybe place the 'Start date' text in the tab panel and style it similar to an input label? To keep it looking a little more tidy (i.e. not floating in space), a little background color might pull it together while also making it a little more subtle: (these colors are not EUI-y, I just approximated quickly in the Inspector) |
|
The prepend solution looks good too! |
andreadelrio
left a comment
There was a problem hiding this comment.
The prepend option looks much cleaner!
|
jenkins test this |
|
@thompsongl Would love to get this in before EOD Friday, if you've got the time. |
|
Yeah we do, but that's for another PR since this whole date picker is not internationalized |






This PR addresses no. 1 on the todo list from GAH:
Added "Start date" and "End date" titles to the popover
... as a tab because using the EuiPopoverTitle with tabs was not pretty
Using bottom border to indicate which time period is selected
Similar to those used on the normal controls but I don't change the background to white so that hopefully indicated it's not editable in the button.
And for "needs update" state:
And for invalid state:
Added the title to tab aria-labels
Checklist
[ ] Any props added have proper autodocs[ ] Documentation examples were added[ ] This was checked for breaking changes and labeled appropriately[ ] Jest tests were updated or added to match the most common scenarios[ ] This required updates to Framer X components