-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(material/datepicker): update active date on focusing a cell #24384
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
Merged
zarend
merged 1 commit into
angular:master
from
zarend:listen-for-focus-event-on-calendar-cells-take-2
Feb 14, 2022
Merged
fix(material/datepicker): update active date on focusing a cell #24384
zarend
merged 1 commit into
angular:master
from
zarend:listen-for-focus-event-on-calendar-cells-take-2
Feb 14, 2022
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When a a date cell on the calendar recieves focus, set the active date to that cell. This ensures that the active date matches the date with browser focus. Previously, we set the active date on keydown and click, but that was problematic for screenreaders. That's because many screenreaders trigger a focus event instead of a keydown event when using screenreader specific navigation (VoiceOver, Chromevox, NVDA). Note that this is the second attempt at this. First attempt was angular#24279, which was reverted in angular#24380 due to an internal issue. Fixes angular#23483
mmalerba
approved these changes
Feb 9, 2022
caretaker note: this PR was previously reverted in #24380 due to causing and internal issue. |
zarend
added a commit
to zarend/components
that referenced
this pull request
Feb 15, 2022
Fixes a failing unit test, which was referencing Jan 1, 2017 as the initial date when it is actually Jan 3, 2017. This happened as a result of a bad merge where angular#24384 changed the initial date to Jan 3, and angular#24401 added a new test that assume the initial date was Jan 1.
zarend
added a commit
to zarend/components
that referenced
this pull request
Feb 15, 2022
Fixes a failing unit test, which was referencing Jan 1, 2017 as the initial date when it is actually Jan 3, 2017. This happened as a result of a bad merge where angular#24384 changed the initial date to Jan 3, and angular#24401 added a new test that assume the initial date was Jan 1.
zarend
added a commit
to zarend/components
that referenced
this pull request
Feb 15, 2022
Fix a failing unit test, which was referencing Jan 1, 2017 as the initial date when it is actually Jan 3, 2017. This happened as a result of a bad merge where angular#24384 changed the initial date to Jan 3, and angular#24401 added a new test that assume the initial date was Jan 1. Fixes CI failure
amysorto
pushed a commit
to amysorto/components
that referenced
this pull request
Feb 15, 2022
…lar#24384) When a a date cell on the calendar recieves focus, set the active date to that cell. This ensures that the active date matches the date with browser focus. Previously, we set the active date on keydown and click, but that was problematic for screenreaders. That's because many screenreaders trigger a focus event instead of a keydown event when using screenreader specific navigation (VoiceOver, Chromevox, NVDA). Note that this is the second attempt at this. First attempt was angular#24279, which was reverted in angular#24380 due to an internal issue. Fixes angular#23483
This was referenced Feb 25, 2022
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Accessibility
This issue is related to accessibility (a11y)
action: merge
The PR is ready for merge by the caretaker
area: material/datepicker
merge: caretaker note
Alert the caretaker performing the merge to check the PR for an out of normal action needed or note
target: minor
This PR is targeted for the next minor release
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When a a date cell on the calendar recieves focus, set the active date
to that cell. This ensures that the active date matches the date with
browser focus.
Previously, we set the active date on keydown and click, but that was
problematic for screenreaders. That's because many screenreaders trigger
a focus event instead of a keydown event when using screenreader
specific navigation (VoiceOver, Chromevox, NVDA).
Note that this is the second attempt at this. First attempt was #24279,
which was reverted in #24380 due to an internal issue.
Fixes #23483