Public Access
Add aria labels
This commit is contained in:
1 parent
d7ca3d9285
commit
1e8ac58578
1 file changed
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
<div {{ attributes }} class="{{ this.finalClasses }}">
|
<div {{ attributes }} class="{{ this.finalClasses }}"{% if this.label %} aria-label="{{ this.label }}"{% endif %}>
|
||||||
<span class="inline-flex items-center justify-center gap-[0.4em] leading-none">
|
<span class="inline-flex gap-1 items-center justify-center">
|
||||||
{% if this.icon %}
|
{% if this.icon %}
|
||||||
<twig:ux:icon name="{{ this.icon }}" class="size-[1em] shrink-0" />
|
<twig:ux:icon name="{{ this.icon }}" class="size-[1em] shrink-0" aria-hidden="true" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if block('content') is not empty %}
|
{% if block('content') is not empty %}
|
||||||
|
|||||||
Reference in new issue
Block a user