Skip to content

Commit 2ee756a

Browse files
committed
QA Feedback: Add aria-label to code block scroll region
1 parent 91acbde commit 2ee756a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/v3/includes/_code_block.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<span class="code-block__copy-icon code-block__copy-icon--copy" aria-hidden="true">{% include "includes/icon.html" with icon_name="copy" icon_class="code-block__copy-svg" icon_size=16 icon_viewbox="0 0 16 16" %}</span>
2222
<span class="code-block__copy-icon code-block__copy-icon--check" aria-hidden="true">{% include "includes/icon.html" with icon_name="check" icon_class="code-block__copy-svg" icon_size=16 %}</span>
2323
</button>
24-
<div class="code-block__scroll-container">
24+
<div class="code-block__scroll-container" aria-label="Scrollable Code Block">
2525
<pre class="code-block__inner"><code class="{% if code_html %}nohighlight{% if cpp_highlight %} cpp-highlight{% endif %}{% else %}language-{{ language|default:'cpp' }}{% endif %}">{% if code_html %}{{ code_html|safe }}{% else %}{{ code }}{% endif %}</code></pre>
2626
</div>
2727
</div>

0 commit comments

Comments
 (0)