-
Notifications
You must be signed in to change notification settings - Fork 842
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
SuperDatePicker tweaks to make it selection more obvious #2049
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. |
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'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! |
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.
The prepend option looks much cleaner!
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.
👍 yasss
jenkins test this |
@thompsongl Would love to get this in before EOD Friday, if you've got the time. |
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.
Code changes look good. Updated design looks great.
Thinking we need to add i18n to all these labels, right?
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