Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12ea49e

Browse files
committed
Added Aria-Labels to all inputs with tooltips for generated HTML animations
1 parent d60b855 commit 12ea49e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/matplotlib/_animation_data.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,26 +198,26 @@
198198
name="points" min="0" max="1" step="1" value="0"
199199
oninput="anim{id}.set_frame(parseInt(this.value));"></input>
200200
<div class="anim-buttons">
201-
<button title="Decrease speed" onclick="anim{id}.slower()">
201+
<button title="Decrease speed" aria-label="Decrease speed" onclick="anim{id}.slower()">
202202
<i class="fa fa-minus"></i></button>
203-
<button title="First frame" onclick="anim{id}.first_frame()">
203+
<button title="First frame" aria-label="First frame" onclick="anim{id}.first_frame()">
204204
<i class="fa fa-fast-backward"></i></button>
205-
<button title="Previous frame" onclick="anim{id}.previous_frame()">
205+
<button title="Previous frame" aria-label="Previous frame" onclick="anim{id}.previous_frame()">
206206
<i class="fa fa-step-backward"></i></button>
207-
<button title="Play backwards" onclick="anim{id}.reverse_animation()">
207+
<button title="Play backwards" aria-label="Play backwards" onclick="anim{id}.reverse_animation()">
208208
<i class="fa fa-play fa-flip-horizontal"></i></button>
209-
<button title="Pause" onclick="anim{id}.pause_animation()">
209+
<button title="Pause" aria-label="Pause" onclick="anim{id}.pause_animation()">
210210
<i class="fa fa-pause"></i></button>
211-
<button title="Play" onclick="anim{id}.play_animation()">
211+
<button title="Play" aria-label="Play" onclick="anim{id}.play_animation()">
212212
<i class="fa fa-play"></i></button>
213-
<button title="Next frame" onclick="anim{id}.next_frame()">
213+
<button title="Next frame" aria-label="Next frame" onclick="anim{id}.next_frame()">
214214
<i class="fa fa-step-forward"></i></button>
215-
<button title="Last frame" onclick="anim{id}.last_frame()">
215+
<button title="Last frame" aria-label="Last frame" onclick="anim{id}.last_frame()">
216216
<i class="fa fa-fast-forward"></i></button>
217-
<button title="Increase speed" onclick="anim{id}.faster()">
217+
<button title="Increase speed" aria-label="Increase speed" onclick="anim{id}.faster()">
218218
<i class="fa fa-plus"></i></button>
219219
</div>
220-
<form title="Repetition mode" action="#n" name="_anim_loop_select{id}"
220+
<form title="Repetition mode" aria-label="Repetition mode" action="#n" name="_anim_loop_select{id}"
221221
class="anim-state">
222222
<input type="radio" name="state" value="once" id="_anim_radio1_{id}"
223223
{once_checked}>

0 commit comments

Comments
 (0)