summaryrefslogtreecommitdiffstats
path: root/core/modules/system/templates/tablesort-indicator.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/templates/tablesort-indicator.html.twig')
-rw-r--r--core/modules/system/templates/tablesort-indicator.html.twig20
1 files changed, 15 insertions, 5 deletions
diff --git a/core/modules/system/templates/tablesort-indicator.html.twig b/core/modules/system/templates/tablesort-indicator.html.twig
index 059805f..3601c6d 100644
--- a/core/modules/system/templates/tablesort-indicator.html.twig
+++ b/core/modules/system/templates/tablesort-indicator.html.twig
@@ -11,8 +11,18 @@
* @ingroup themeable
*/
#}
-{% if style == 'asc' -%}
- <img src="{{ arrow_asc }}" width="13" height="13" alt="{{ 'sort ascending'|t }}" title="{{ 'sort ascending'|t }}" />
-{% else -%}
- <img src="{{ arrow_desc }}" width="13" height="13" alt="{{ 'sort descending'|t }}" title="{{ 'sort descending'|t }}" />
-{% endif %}
+{%
+ set classes = [
+ 'tablesort',
+ 'tablesort--' ~ style,
+ ]
+%}
+<span{{ attributes.addClass(classes) }}>
+ <span class="visually-hidden">
+ {% if style == 'asc' -%}
+ {{ 'Sort ascending'|t }}
+ {% else -%}
+ {{ 'Sort descending'|t }}
+ {% endif %}
+ </span>
+</span>