Add title attribute to badges by default

This commit is contained in:
brabli
2026-05-08 12:49:00 +01:00
parent e711a295c2
commit 1ae484844b
+1 -1
View File
@@ -1,4 +1,4 @@
<div {{ attributes }} class="{{ this.finalClasses }}"{% if this.label %} aria-label="{{ this.label }}"{% endif %}>
<div {{ attributes.defaults({ "aria-label": this.label ?? "", "title": this.label ?? "", "class": this.finalClasses }) }}>
<span class="inline-flex gap-1 items-center justify-center">
{% if this.icon %}
<twig:ux:icon name="{{ this.icon }}" class="size-[1em] shrink-0" aria-hidden="true" />