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

Revert "Listen for focus event on calendar cells" #24380

Merged

Conversation

zarend
Copy link
Contributor

@zarend zarend commented Feb 8, 2022

Reverts #24279

Rolling this back as it caused an internal issue.

@zarend zarend requested review from mmalerba and a team as code owners February 8, 2022 17:51
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zarend zarend added target: patch This PR is targeted for the next patch release area: material/datepicker labels Feb 8, 2022
@zarend zarend added the action: merge The PR is ready for merge by the caretaker label Feb 8, 2022
@zarend zarend merged commit e04e4a7 into master Feb 8, 2022
zarend added a commit that referenced this pull request Feb 8, 2022
…lendar cell (#24279)" (#24380)

This reverts commit 052b97d.

(cherry picked from commit e04e4a7)
zarend added a commit to zarend/components that referenced this pull request Feb 9, 2022
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
zarend added a commit that referenced this pull request Feb 14, 2022
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
amysorto pushed a commit to amysorto/components that referenced this pull request Feb 15, 2022
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
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 11, 2022
@josephperrott josephperrott deleted the revert-24279-listen-for-focus-event-on-calendar-cells branch June 29, 2022 18:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: material/datepicker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants