sort buttons .sr-only instead of hide

This commit is contained in:
Mira Weller
2024-06-24 17:34:41 +02:00
parent 46ec507442
commit 578666f8e8
@@ -6,7 +6,7 @@ $(function () {
handle = $('<span class="btn btn-default btn-sm dnd-sort-handle"><i class="fa fa-arrows"></i></span>');
container.find(".dnd-container").append(handle);
container.find(".sortable-up, .sortable-down").hide();
container.find(".sortable-up, .sortable-down").addClass("sr-only");
if (container.find("[data-dnd-id]").length < 2 && !container.data("dnd-group")) {
handle.addClass("disabled");
return;