Skip to content

Commit

Permalink
♿ [#2373] Made aria-labels same as (hidden) texts first
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Apr 25, 2024
1 parent cecdb72 commit 3d792aa
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 3d792aa

Please sign in to comment.