From 739995b44dd67e393322b026c6aa797d1bdee44b Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Tue, 29 Sep 2026 12:16:09 +0200 Subject: [PATCH] fix: admin user list headers never announce the current sort to screen readers In Admin Panel > Users, the column headers kept reporting the sort order from page load to screen readers, even after clicking a header re-sorted the list. Now the clicked header reports ascending or descending and all other headers report no sorting. Fixes #31581 --- src/lib/components/admin/Users/UserList.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/admin/Users/UserList.svelte b/src/lib/components/admin/Users/UserList.svelte index fc94474ef6..9579d4dc0d 100644 --- a/src/lib/components/admin/Users/UserList.svelte +++ b/src/lib/components/admin/Users/UserList.svelte @@ -72,7 +72,7 @@ } }; - const sortState = (key) => + $: sortState = (key) => orderBy === key ? (direction === 'asc' ? 'ascending' : 'descending') : 'none'; const setSortKey = (key) => {