-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(module:date-picker): make keyboard navigation possible #3146
fix(module:date-picker): make keyboard navigation possible #3146
Conversation
Deploy preview for ng-zorro-master ready! Built with commit 440e6b8 |
Codecov Report
@@ Coverage Diff @@
## master #3146 +/- ##
=========================================
+ Coverage 95.39% 95.4% +<.01%
=========================================
Files 709 709
Lines 14586 14589 +3
Branches 1924 1924
=========================================
+ Hits 13915 13918 +3
Misses 243 243
Partials 428 428
Continue to review full report at Codecov.
|
Any news about this? I think this is a really great improve on UX. |
@wilsoncook What about the review? |
@jimmytheneutrino Is this pr a duplicate of #3145. And please rebase to resolve conflicts. |
export class CalendarInputComponent implements OnInit { | ||
@Input() locale: NzCalendarI18nInterface; | ||
@Input() format: string; | ||
@Input() placeholder: string; | ||
@Input() disabledDate: (d: Date) => boolean; | ||
|
||
@Input() value: CandyDate; | ||
@Input() nzAutoFocus: boolean; |
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.
@Input() nzAutoFocus: boolean; | |
@Input() autoFocus: boolean; |
@jimmytheneutrino Thank you for your PR. The features of |
e2c2e9d
to
c6ab2b6
Compare
Extracted the good parts suitable for a11y from NG-ZORRO#3146. See discussion there.
I extracted these features into a new PR #3804 (please check if it suits you). |
e08e99a
to
4fff833
Compare
Tabbing away from date-picker overlay was not possible: It wrapped around and usually ended up in browser's address bar. This fixes this. Tabbing away from overlay now focuses on date-picker wrapper span.
4fff833
to
440e6b8
Compare
Extracted the good parts suitable for a11y from NG-ZORRO#3146. See discussion there.
Extracted the good parts suitable for a11y from NG-ZORRO#3146. See discussion there.
Extracted the good parts suitable for a11y from NG-ZORRO#3146. See discussion there.
Extracted the good parts suitable for a11y from NG-ZORRO#3146. See discussion there.
Extracted the good parts suitable for a11y from NG-ZORRO#3146. See discussion there.
Extracted the good parts suitable for a11y from NG-ZORRO#3146. See discussion there.
Extracted the good parts suitable for a11y from #3146. See discussion there.
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.
Hi @jimmytheneutrino
thanks for your contribution
there is some conflict with master now, plz rebase onto master
As there is no update for a long time, the PR will be closed. |
…ORRO#3804) Extracted the good parts suitable for a11y from NG-ZORRO#3146. See discussion there.
…ORRO#3804) Extracted the good parts suitable for a11y from NG-ZORRO#3146. See discussion there.
Tabbing away from date-picker overlay was not possible: It wrapped
around and usually ended up in browser's address bar. Also, once you
selected date-picker wrapper span, there was no way to open the overlay
via keyboard.
This fixes this. Tabbing away from overlay now focuses on date-picker
wrapper span. Pressing enter on the wrapper span opens the overlay.
Please also see a similar PR for the time-picker module #3145 .
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Tabbing away from date-picker overlay was not possible: It wrapped
around and usually ended up in browser's address bar. Also, once you
selected date-picker wrapper span, there was no way to open the overlay
via keyboard.
Issue Number: N/A
What is the new behavior?
This fixes this. Tabbing away from overlay now focuses on date-picker
wrapper span. Pressing enter on the wrapper span opens the overlay.
Does this PR introduce a breaking change?
Other information
The behavior (both current and new) can be observed on the main demo page (npm run site:start).