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

Time Picker: Add Keyboard Mode #8863

Open
1 of 2 tasks
danielchalmers opened this issue May 3, 2024 · 2 comments
Open
1 of 2 tasks

Time Picker: Add Keyboard Mode #8863

danielchalmers opened this issue May 3, 2024 · 2 comments
Assignees
Labels
accessibility enhancement New feature or request

Comments

@danielchalmers
Copy link
Contributor

Feature request type

Enhance component

Component name

MudTimePicker

Is your feature request related to a problem?

Usability and accessibility can be improved by including a way of using the keyboard to enter the time.

Describe the solution you'd like

A KeyboardMode boolean (false by default) that transforms the Time Picker into a view with the clock removed and text fields for the time.

A new EditButton component could be considered to handle the transition between button and input.

There should be example in the docs that shows it implemented with actions and everything like in the image below.
It's possible the current button style should look more like that as well to improve contrast.

Have you seen this feature anywhere else?

image

image

Describe alternatives you've considered

No response

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct
@danielchalmers danielchalmers added enhancement New feature or request triage labels May 3, 2024
@henon henon removed the triage label May 7, 2024
@danielchalmers danielchalmers self-assigned this May 7, 2024
@danielchalmers danielchalmers changed the title Keyboard mode for Time Picker Time Picker: Add Keyboard Mode May 12, 2024
@danielchalmers
Copy link
Contributor Author

@henon What component would I use for the hour/minute button/field? A new one - MudEditButton?

@henon
Copy link
Collaborator

henon commented May 14, 2024

Can't we just use a MudInput with special styling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants