-
Notifications
You must be signed in to change notification settings - Fork 272
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
feat(ui5-time-picker): Redesign the Time Picker component according to the new design #6818
Conversation
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 PR says:
"refactor(ui5-time-picker): Redesign the Time Picker component according to the new design"
but there is no redesign of the TimePicker, it's a PR that adds private web component (that I assume will be used later with another changed in the TimePicker). The PR description needs adjustments.
I will change "refactor" with "wip" - in fact the component that is currently in this PR cannot (and have no idea to) be used separately. There will be at least two more components (also private and useless outside Time Picker context) included in this PR and all of them then will be used in the refactoring. BR, |
Hello, the redesign is still in process, that's why I am reopening this PR. |
736511c
to
7a5e86a
Compare
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 change is major, please describe it better in the PR's description
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.
Tested on different themes and time formats. All seems to be working fine.
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.
When the clock is open and I change the value of the timepicker in the console
$0.value = "15:00:00" f.e., nothing happens. I must close the clock and reopen it for it to update.
I get warnings in the console for texts that don't exist.
It is already fixed
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.
Some discussions are still in progress with the design team, let's delay the merge of the PR for a bit.
…o the new design (#6818) * WIP(ui5-time-picker-clock): initial implementation * feat(ui5-time-picker-clock): initial implementation * feat(ui5-time-picker-clock) mark component as private * time selection with clocks - updated main * optimization and time selection methods integration, part 1 * wip(ui5-time-picker): replace sliders with clocks * feat(ui5-time-picker): fix lint errors * add initial tests * feat(ui5-time-picker): fix comments and add tests * feat(ui5-time-picker): fix comments * feat(ui5-time-picker): fix comments and tests * feat(ui5-time-picker): fix latest comments * feat(ui5-time-picker): fix comments for tests and global event
Related to: #3678 |
The Time Picker component will be redesigned according to the new design with clocks, already provided for UI5 TimePicker control.
Instead of currently existing sliders, new clock dial components whould be used to select time (hours/minutes/seconds, each selected by separate clock). Also, there is AM/PM segmented button that replaces the AM/PM slider.
In addition to mouse, touch or mouse wheel time selection, there is improved keyboard interaction added - hours/minutes and seconds can be selected by keyboard ([PageUp]/[PageDown] for hours, [Shift]+[PageUp]/[PageDown] for minutes and [Ctrl/Cmd]+[Shift]+[PageUp]/[PageDown] for seconds as well as [A] or [P] for AM/PM selection). Also, direct number typing is accepted.
Accessibility/SR announcements are also covered.