Skip to content
Snippets Groups Projects
Verified Commit c2c82598 authored by Owen Graham's avatar Owen Graham
Browse files

Use ARIA label instead of alt text for plots

parent 9a8f263d
Branches
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ function visualize(imgSrc) {
const visualization = document.getElementById('visualization');
const img = document.createElement('img');
img.src = imgSrc;
img.alt = 'Graph of selected data';
img.setAttribute('aria-label', 'Graph of selected data');
plotDiv.replaceChildren(img);
visualization.hidden = false;
}
......
......@@ -76,7 +76,7 @@
<div id="plot">
{%- if g.selection_complete +%}
<img src="{{ url_for('plot_image', name=g.plotter.name) -}}
?{{ g.image_qs }}" alt="Graph of selected data">
?{{ g.image_qs }}" aria-label="Graph of selected data">
{%+ endif -%}
</div>
<div id="sources">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment