Add title attribute to badges by default
This commit is contained in:
@@ -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">
|
<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" aria-hidden="true" />
|
<twig:ux:icon name="{{ this.icon }}" class="size-[1em] shrink-0" aria-hidden="true" />
|
||||||
|
|||||||
Reference in New Issue
Block a user