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

Skip to content

Commit 10b065f

Browse files
authored
Merge pull request #18911 from xlilos/master
ENH: Added Aria-Labels to all inputs with tooltips for generated HTML animations Closes #17910
2 parents 6f9f600 + b227928 commit 10b065f

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ per-file-ignores =
5454
lib/matplotlib/_mathtext.py: E221, E251
5555
lib/matplotlib/_mathtext_data.py: E203, E261
5656
lib/matplotlib/animation.py: F401
57+
lib/matplotlib/_animation_data.py: E501
5758
lib/matplotlib/axes/__init__.py: F401, F403
5859
lib/matplotlib/axes/_axes.py: F401
5960
lib/matplotlib/backends/backend_*.py: F401

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)