fix: improve skeleton loading accessibility and consistency

- Add role="status" and aria-label to all skeleton containers
- Refactor ChannelSidebar from conditional siblings to ternary
  for consistent mutual exclusivity with MemberSidebar pattern
This commit is contained in:
Jannis Braun
2026-03-22 02:51:02 +01:00
parent 7d21f25f39
commit fcbdac7a2f
4 changed files with 7 additions and 9 deletions
@@ -152,7 +152,7 @@ export function MemberSidebar() {
return (
<div className="w-60 bg-surface-members flex-shrink-0 overflow-y-auto select-none no-scrollbar hidden md:block border-l border-border-hard">
{isLoadingSpace ? (
<div className="px-3 pt-4">
<div className="px-3 pt-4" role="status" aria-label="Loading members">
{/* Role group 1 */}
<div className="skeleton skeleton-bar h-2 w-[40%] mb-3" style={{ animationDelay: '0s' }} />
{Array.from({ length: 2 }, (_, i) => (