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

feat(ui5-date-picker): component is now aligned with the specification #2304

Merged
merged 13 commits into from
Nov 24, 2020

Conversation

unazko
Copy link
Contributor

@unazko unazko commented Oct 6, 2020

Focus handling is aligned with the KBH specification:

  • When an year is selected from the year picker the day picker is shown and focus
    is set to the last selected date or to the current date.
  • When a month is selected from the month picker the day picker is shown and focus
    is set to the last selected date or to the current date.
  • When month picker is opened the focus is set to the selected month or to the current month
    if there are no selected dates.
  • When year picker is opened the focus is set to the selected year or to the current year
    if there are no selected dates.

Selection is applied in compliance with the UX specification, when a picker is opened:

  • Calendar items from the month picker and year picker are not rendered selected, when there are no
    selected dates.

Fixes #2151

 - Focus handling is aligned with the specification, when item is selected from a picker.
 - Selection is applied in compliance with the specification, when a picker is opened.
@unazko unazko changed the title feat(ui5-datepicker): component is not aligned with the specification feat(ui5-datepicker): component is now aligned with the specification Oct 6, 2020
@unazko unazko changed the title feat(ui5-datepicker): component is now aligned with the specification feat(ui5-date-picker): component is now aligned with the specification Oct 6, 2020
@ilhan007
Copy link
Member

@unazko could you merge the master, as there have been changes to the ui5-date-picker by your team
and I suppose your PR is related to this issue: #2151
Could you please reference it in the commit body?

@unazko
Copy link
Contributor Author

unazko commented Oct 20, 2020

There is still one issue left with the focus placement after a month or year is chosen.

 - Focus is now set inside the day picker component grid after,
 after a month or an year is chosen from the corresponding month picker
 or year picker component.
 - Focus in the day picker component can't be lost now as a result of
 pressing the forward or backward arrow buttons in the calendar component
 header section.
@unazko unazko requested review from ilhan007, tsanislavgatev and fifoosid and removed request for ilhan007, tsanislavgatev and fifoosid October 27, 2020 16:30
@tsanislavgatev
Copy link
Contributor

Looks good to me. But you have merge conflict @unazko

@unazko
Copy link
Contributor Author

unazko commented Nov 5, 2020

After a discussion with Vladislav I understood that the two additional tests need to be changed, in order to be stable and not introduce timing issues into the whole test set.

@CLAassistant
Copy link

CLAassistant commented Nov 10, 2020

CLA assistant check
All committers have signed the CLA.

@tsanislavgatev
Copy link
Contributor

Looks good to me. @ilhan007 @fifoosid

@ilhan007 ilhan007 merged commit 30d9d2b into SAP:master Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DatePicker enhacements - part 1
4 participants