Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit bccd044

Browse files
committed
fix(a11y): add titles to iframes
1 parent a1ed1d3 commit bccd044

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pems_web/src/pems_web/districts/templates/districts/district.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ <h2>Form</h2>
1212
</div>
1313
<div class="row" style="min-height: 450px;">
1414
<div class="col-lg-12 border">
15-
<iframe class="w-100 h-100" src="{{ streamlit.url }}/stations--stations?embed=true&district_number={{ current_district.number }}">
15+
<iframe title="District {{ current_district.number }} visualization"
16+
class="w-100 h-100"
17+
src="{{ streamlit.url }}/stations--stations?embed=true&district_number={{ current_district.number }}">
1618
</iframe>
1719
</div>
1820
</div>

pems_web/src/pems_web/districts/templates/districts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2>Chart</h2>
2424
</div>
2525
<div class="row" style="min-height: 450px;">
2626
<div class="col-lg-12 border">
27-
<iframe class="w-100 h-100" src="{{ streamlit.url }}/stations--stations?embed=true">
27+
<iframe title="District visualizations" class="w-100 h-100" src="{{ streamlit.url }}/stations--stations?embed=true">
2828
</iframe>
2929
</div>
3030
</div>

0 commit comments

Comments
 (0)