Add a11y labels for buttons

This commit is contained in:
Sam Carlton 2021-10-21 12:55:48 -05:00
parent c29b1084b3
commit 434a9cfb42
4 changed files with 5 additions and 0 deletions

View file

@ -16,6 +16,7 @@ function renderTimestamps ( video ) {
const timestampButtonsHtml = timestampsForRender.map( timestamp => (/* html */`
<button
time="${timestamp.time}"
aria-label="Jump to ${timestamp.fullText}"
class="inline-block text-xs rounded-lg py-1 px-2 border-2 border-white focus:outline-none border-opacity-0 neumorphic-shadow-inner">
${ timestamp.fullText }
</button>