mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-06-04 20:31:22 +00:00
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:
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user