-
Notifications
You must be signed in to change notification settings - Fork 7
feat(RelativeRangeDatePicker): added interactive tooltip and header #178
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
Conversation
Preview is ready. |
Do we have rfc for these features? |
Yes, we do https://st.yandex-team.ru/UXRFC-509 |
@@ -19,4 +17,8 @@ $block: '.#{variables.$ns}relative-range-date-picker-presets-doc'; | |||
width: 100%; | |||
} | |||
} | |||
|
|||
&__row { | |||
vertical-align: baseline; |
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.
We don't need this style, label is aligned well without it
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.
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.
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.
Removed alignment after conversation with designers
@@ -62,9 +65,27 @@ export function PickerForm( | |||
size: props.size, | |||
errorPlacement: 'inside', | |||
}; | |||
const {isDateUnavailable} = props; | |||
const {isDateUnavailable, withHeader = true} = props; |
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.
It would be more consistent to use false
by default
@@ -4,5 +4,6 @@ | |||
"\"From\" can't be after \"To\".": "\"From\" can't be after \"To\".", | |||
"From": "From", | |||
"To": "To", | |||
"Apply": "Apply" | |||
"Apply": "Apply", | |||
"Specify the interval": "Specify the interval" |
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 suggest to use word Select
here
This pr moves docs popover out of preset tabs since it is more related to the picker itself rather than presets. It also makes docs popover interactive: after user clicks on the buttons related input gets properly filled. The original RFC: https://st.yandex-team.ru/UXRFC-509