Skip to content

Commit 053999d

Browse files
tmiaaJulian Dehm
authored andcommitted
Adding markers aria-label for accessibility
1 parent bf629cb commit 053999d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MarkerClusterGroup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ export var MarkerClusterGroup = L.MarkerClusterGroup = L.FeatureGroup.extend({
834834
c += 'large';
835835
}
836836

837-
return new L.DivIcon({ html: '<div><span>' + childCount + '</span></div>', className: 'marker-cluster' + c, iconSize: new L.Point(40, 40) });
837+
return new L.DivIcon({ html: '<div><span>' + childCount + ' <span aria-label="markers"></span>' + '</span></div>', className: 'marker-cluster' + c, iconSize: new L.Point(40, 40) });
838838
},
839839

840840
_bindEvents: function () {

0 commit comments

Comments
 (0)