Skip to content

a11y: Speed Playback Selection should be Select Element #11

Description

@jeryj

I noticed the speed playback selection is a button that spawn a list of other buttons for speed selection:

<div class="waveform-speed">
  <button class="speed-btn" aria-label="Playback speed" aria-haspopup="true" aria-expanded="false">
    <span class="speed-value">1x</span>
  </button>
  <div class="speed-menu" style="display: none;">
    <button class="speed-option" data-rate="0.5">0.5x</button><button class="speed-option" data-rate="0.75">0.75x</button><button class="speed-option active" data-rate="1">1x</button>...
  </div>
</div>

Using a styled <select /> dropdown would be more accessible and simplify the code, as keyboard interactions and screen reader announcements would be handled by default by the browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions