3 Commits

Author SHA1 Message Date
brabli 98133a5950 Update changelog 2026-05-08 12:50:27 +01:00
brabli 1ae484844b Add title attribute to badges by default 2026-05-08 12:49:02 +01:00
brabli e711a295c2 Add semantic colours to showcase 2026-05-08 12:48:45 +01:00
3 changed files with 9 additions and 2 deletions
+4
View File
@@ -2,6 +2,10 @@
## [x.x.x] - xxxx-xx-xx
## [2.2.2] - 2026-05-08
- Add `[title]` attribute by default
- Update showcase page to show semantic colours
## [2.2.1] - 2026-05-07
- Fix `BROWN` colour classes
+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" />
+4 -1
View File
@@ -11,6 +11,9 @@
colors: {
accent: '#7c3aed',
primary: '#0f172a',
danger: '#cc0000',
warning: '#df5010',
success: '#00d00a',
},
fontSize: {
'2xs': ['0.625rem', '0.875rem'],
@@ -28,7 +31,7 @@
<h2 class="text-lg font-semibold mb-3">Solid</h2>
<div class="flex flex-wrap gap-2">
{% for colour in colours %}
<twig:Pcm:Badge colour="{{ colour }}">{{ colour }}</twig:Pcm:Badge>
<twig:Pcm:Badge colour="{{ colour }}" :label="colour" />
{% endfor %}
</div>
</section>