Skip to content
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

Hide date picker after selecting date #3262

Closed
gabrielwas opened this issue May 21, 2020 · 2 comments · Fixed by #3264
Closed

Hide date picker after selecting date #3262

gabrielwas opened this issue May 21, 2020 · 2 comments · Fixed by #3264
Assignees
Labels
comp: clay-components Issues related to Clay components. (e.g ClayCard, ClayLabel...) rfc Similar to the RFC that are used in React.js, Ember.js, Gatsby.js and Rust, but to mark problems tha

Comments

@gabrielwas
Copy link
Member

What is your proposal?

Add the possibility of hiding the picker automatically after selecting the date

Why would adopting this proposal be beneficial?

It could reduce the number of clicks to select a date, and through that, the use of the app would become more organic to the user.

What are the alternatives to this proposal?

Maybe provide a property to allow this behavior

@gabrielwas gabrielwas added the rfc Similar to the RFC that are used in React.js, Ember.js, Gatsby.js and Rust, but to mark problems tha label May 21, 2020
@matuzalemsteles matuzalemsteles added the comp: clay-components Issues related to Clay components. (e.g ClayCard, ClayLabel...) label May 21, 2020
@bryceosterhaus bryceosterhaus self-assigned this May 21, 2020
@bryceosterhaus
Copy link
Member

@gabrielwas just added props to control the expand functionality. Check out this storybook demo to see an example of manually handling the expand when someone clicks on a date

https://github.com/liferay/clay/pull/3264/files#diff-66c91d2750a8b6f447ea0cd4c032eda5R108

@gabrielwas
Copy link
Member Author

@bryceosterhaus Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: clay-components Issues related to Clay components. (e.g ClayCard, ClayLabel...) rfc Similar to the RFC that are used in React.js, Ember.js, Gatsby.js and Rust, but to mark problems tha
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants