Skip to content

Commit

Permalink
fix: use aria-label instead of data attribute for annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
pdmnyberg committed May 17, 2024
1 parent 9c551b0 commit 2039679
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}
.annotated-sequence::after {
letter-spacing: normal;
content: attr(data-annotation);
content: attr(aria-label);
height: 20px;
text-align: center;
line-height: 20px;
Expand Down
6 changes: 3 additions & 3 deletions templates/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h4 class="accordion-header">
<div id="collapse-annotated-{{ index }}" class="accordion-collapse collapse show" data-bs-parent="#accordion-{{ index }}">
<div class="accordion-body">
<p>
{{#annotations}}<span class="annotated-sequence break-all" data-annotation="{{ label }}">{{ sequence }}</span>{{/annotations}}
{{#annotations}}<span class="annotated-sequence break-all" aria-label="{{ label }}">{{ sequence }}</span>{{/annotations}}
</p>
</div>
</div>
Expand All @@ -75,7 +75,7 @@ <h4 class="accordion-header">
<div id="collapse-sequence-{{ index }}" class="accordion-collapse collapse" data-bs-parent="#accordion-{{ index }}">
<div class="accordion-body">
<p>
<span class="annotated-sequence break-all" data-annotation="Oligo sequence">{{ sequence }}</span>
<span class="annotated-sequence break-all" aria-label="Oligo sequence">{{ sequence }}</span>
</p>
</div>
</div>
Expand Down Expand Up @@ -112,7 +112,7 @@ <h4 class="accordion-header">
{{#listItems}}
<tr>
<td>{{ gene_id }}</td>
<td>{{#annotations}}<span class="annotated-sequence break-all" data-annotation="{{ label }}">{{ sequence }}</span>{{/annotations}}</td>
<td>{{#annotations}}<span class="annotated-sequence break-all" aria-label="{{ label }}">{{ sequence }}</span>{{/annotations}}</td>
</tr>
{{/listItems}}
</tbody>
Expand Down

0 comments on commit 2039679

Please sign in to comment.