Skip to content

Change remaining-time-display.js so that the time value announced by a screen reader is not negative #5168

Closed

Description

@OwenEdwards

Description

As mentioned in #5157, the convention to display the remaining time in a video as a negative number is purely a visual convention; for screen reader users, where the remaining time has a hidden label, the actual amount of remaining time is positive, not negative.

So the remaining-time-display.js component should either add the negative sign in a way that is decorative and not announced by screen readers, or the visual (negative) number should be aria-hidden from screen readers and a hidden positive value should be added.

Activity

  1. added
    a11yThis item might affect the accessibility of the player
    on May 10, 2018
  2. smbea commented on Dec 5, 2018

    @smbea
    Contributor

    @gkatsev Hello, this is my approach for fixing the issue. I made it so the '-' is added on every time remaining update in a purely decorative way. I was wondering if this fits the what you had in mind for the solution or it should be a more efficient one.

    You can see the screenshots of the solution working:

    screenshot 2018-12-05 at 21 12 19
    screenshot 2018-12-05 at 21 12 29

    And here are the changes made:

    screenshot 2018-12-05 at 21 13 54
    screenshot 2018-12-05 at 21 14 00

  3. added a commit that references this issue on Jan 8, 2019
    05513f8
  4. locked as resolved and limited conversation to collaborators on May 26, 2022
  5. added a commit that references this issue on Feb 22, 2024
    9a8376e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a11yThis item might affect the accessibility of the player

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions