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.
I noticed the speed playback selection is a button that spawn a list of other buttons for speed selection:
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.