Add keyboard activation to the interactive elements and use stable keys. [skip build]
Checks / checks (push) Successful in 2m8s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-01 21:32:32 +11:00
parent 664b7eb739
commit eaa9ac00dd
8 changed files with 54 additions and 30 deletions
+4 -4
View File
@@ -112,11 +112,11 @@ function SpaceNavSection({
{section.items.length > 0 && (
<div data-nav-rooms="">
<div data-nav-room-list="">
{section.items.map((item, index) => {
{section.items.map((item) => {
if (item.type === 'unjoined-subroom') {
return (
<UnjoinedSubRoomItem
key={`${item.roomId}:${index}`}
key={item.roomId}
roomId={item.roomId}
depth={item.depth}
isLast={item.isLast}
@@ -127,7 +127,7 @@ function SpaceNavSection({
if (item.type === 'subroom') {
return (
<div
key={`${item.roomId}:${index}`}
key={item.roomId}
data-nav-depth={item.depth}
style={{
display: 'flex',
@@ -158,7 +158,7 @@ function SpaceNavSection({
return (
<RoomNavItem
key={`${item.roomId}:${index}`}
key={item.roomId}
room={room}
selected={selectedRoomId === item.roomId}
showAvatar={mDirects.has(item.roomId)}