fix(#1360): GREEN — pill body emits letter + count

Restore the count number that #1357 inadvertently dropped from cluster
role pills. The pill body now concatenates the role letter (WCAG
carrier from #1356) with the per-role count (operator-facing data),
producing R60 / C30 / M5 / S1 / O2 style rendering on the map.

aria-label and title unchanged ("60 repeaters") — already correct.
DOM, classes, CSS variables, border-style ramp, multi-byte labels —
all untouched.

Verified locally:
- test-issue-1360-pill-letter-count.js: PASS
- test-issue-1356-map-a11y.js: 40/40 PASS (letter still first char)
- test-issue-1293-marker-shapes.js: 23/23 PASS
- test-marker-outline-weight.js: 6/6 PASS
This commit is contained in:
openclaw-bot
2026-05-25 19:15:00 +00:00
parent c0de33a952
commit c268248dd6
+1 -1
View File
@@ -1521,7 +1521,7 @@
'role="img" aria-label="' + n + ' ' + role + (n === 1 ? '' : 's') + '" ' +
'style="background:' + bg + ';color:#1a1a1a" ' +
'title="' + n + ' ' + role + (n === 1 ? '' : 's') + '">' +
letter + '</span>';
letter + n + '</span>';
pillsShown += 1;
}
}