Skip to content

bug(material/datepicker): Voiceover Loses Focus when pressing Page Down key #24330

Closed

Description

@zarend

When navigating the calendar with VoiceOver enabled, pressing Page Down causes the screenreader focus to move to the entire calendar, instead of stay on an individual date.

Reproduction

Steps to reproduce:

  1. With Screenreader enabled, Open the datepicker expands in a browser and navigate to the Basic Datepicker Demo.
  2. Click on the Calendar button to open the datepicker
  3. navigate to January 28, 2022
  4. (VoiceOver reads "January 28, 2022". the cell for Jan 28, 2022 has blue focus outline and black voiceover outline
  5. Press PageDown
  6. (VoiceOver reads "February, 2022". The Cell for Feb 28, 2022 has blue focus outline. Voiceover's black outline is around the entire box. Voiceover should read "February 28, 2022".

Expected Behavior

Voiceover reads "February 28, 2022".

Actual Behavior

voiceover reads "February, 2022"

Environment

Operating System | macOS Monterey 12.1 (21C52)
Browser | Chrome Version 97.0.4692.99 (Official Build) (x86_64), Safari Version 15.3 (17612.4.9.1.5)
Screenreader | VoiceOver

jan-28-2022-.feb.mov
Additional Notes

This is copied from an internal bug report found during a11y testing.

Activity

  1. added
    needs triage
    on Feb 1, 2022
  2. changed the title [-]bug(COMPONENT): TITLE[/-] [+]bug(material/datepicker): Voiceover Loses Focus when pressing Page Down key[/+] on Feb 1, 2022
  3. added
    Accessibility
    and removed
    needs triage
    on Feb 1, 2022
  4. zarend commented on Feb 1, 2022

    @zarend
    ContributorAuthor

    @Splaktar I'm stumped on this one. I'm curious if you've come across anything similar to this? This seems vaguely familiar to problems we've had with setting focus and screenreader announcements when opening dialogs?

    My current theory, is that VoiceOver gets confused when the focused element is removed from the DOM, which causes it to focus on the entire table.

  5. zarend commented on Feb 2, 2022

    @zarend
    ContributorAuthor

    After talking to @crisbeto , looks like the aria-live region is interfering with announcing the calendar body. I'll keep looking into this...

  6. self-assigned this
    on Feb 2, 2022
  7. Splaktar commented on Feb 3, 2022

    @Splaktar
    Contributor

    It sounds like you are on the right track. I don't think that I recall any problems (or solutions) to something similar.

  8. added a commit that references this issue on Mar 14, 2022
    dfef173
  9. added a commit that references this issue on Apr 3, 2022
    a7596f9
  10. angular-automatic-lock-bot commented on Apr 14, 2022

    @angular-automatic-lock-bot

    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.

  11. locked and limited conversation to collaborators on Apr 14, 2022
  12. added a commit that references this issue on Jun 4, 2024
    6b4f2bf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Accessibilityarea: material/datepicker

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions