Skip to content

Commit

Permalink
Merge pull request #1181 from maykinmedia/issue/2373-a11y-scroll-label
Browse files Browse the repository at this point in the history
♿ [#2373] Make aria-labels same as (hidden) texts
  • Loading branch information
alextreme authored Apr 26, 2024
2 parents 1e0422a + 3d792aa commit 9b6e22f
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
{% if href %}
<a
class="{{ classes }}"
href="{{href}}"
href="{{ href }}"
title="{% firstof title text %}"
aria-label="{% firstof title text %}"
aria-label="{% firstof text title %}"
{% if href|startswith:"http" %}target="_blank"{% endif %}
{% as_attributes extra_attributes %}
{% if ariaExpanded %} aria-expanded="{{ ariaExpanded }}" {% endif %}
Expand All @@ -14,20 +14,20 @@
{% if text_icon %}
<span class="button__text-wrapper">
{% icon icon=text_icon outlined=icon_outlined %}
{% if not hide_text %}{{text}}{% endif %}
{% if not hide_text %}{{ text }}{% endif %}
</span>
{% else %}
{% if not hide_text %}{{text}}{% endif %}
{% if not hide_text %}{{ text }}{% endif %}
{% endif %}
</a>
{% else %}
<button
class="{{ classes }}"
type="{{type}}"
type="{{ type }}"
name="{{ name }}"
value="{{ value }}"
title="{% firstof title text %}"
aria-label="{% firstof title text %}"
aria-label="{% firstof text title %}"
{% as_attributes extra_attributes %}
{% if id %} id="{{ id }}" {% endif %}
{% if form_id %} form="{{ form_id }}"{% endif %}
Expand All @@ -37,10 +37,10 @@
{% if text_icon %}
<span class="button__text-wrapper">
{% icon icon=text_icon outlined=icon_outlined %}
{% if not hide_text %}{{text}}{% endif %}
{% if not hide_text %}{{ text }}{% endif %}
</span>
{% else %}
{% if not hide_text %}{{text}}{% endif %}
{% if not hide_text %}{{ text }}{% endif %}
{% endif %}
</button>
{% endif %}

0 comments on commit 9b6e22f

Please sign in to comment.