Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 857bb9d

Browse files
committed
Add some treeview labels
1 parent 0f49fe9 commit 857bb9d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/components/structures/SpaceRoomDirectory.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,12 @@ export const SpaceHierarchy: React.FC<IHierarchyProps> = ({
639639
{ error && <div className="mx_SpaceRoomDirectory_error">
640640
{ error }
641641
</div> }
642-
<AutoHideScrollbar className="mx_SpaceRoomDirectory_list" onKeyDown={onKeyDownHandler} role="tree">
642+
<AutoHideScrollbar
643+
className="mx_SpaceRoomDirectory_list"
644+
onKeyDown={onKeyDownHandler}
645+
role="tree"
646+
aria-label={_t("Space")}
647+
>
643648
{ results }
644649
{ children }
645650
</AutoHideScrollbar>

src/components/views/spaces/SpacePanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ const SpacePanel = () => {
279279
className={classNames("mx_SpacePanel", { collapsed: isPanelCollapsed })}
280280
onKeyDown={onKeyDownHandler}
281281
role="tree"
282+
aria-label={_t("Spaces")}
282283
>
283284
<Droppable droppableId="top-level-spaces">
284285
{ (provided, snapshot) => (

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2829,6 +2829,7 @@
28292829
"Mark as suggested": "Mark as suggested",
28302830
"No results found": "No results found",
28312831
"You may want to try a different search or check for typos.": "You may want to try a different search or check for typos.",
2832+
"Space": "Space",
28322833
"Search names and descriptions": "Search names and descriptions",
28332834
"If you can't find the room you're looking for, ask for an invite or <a>create a new room</a>.": "If you can't find the room you're looking for, ask for an invite or <a>create a new room</a>.",
28342835
"Create room": "Create room",
@@ -3110,7 +3111,6 @@
31103111
"Page Down": "Page Down",
31113112
"Esc": "Esc",
31123113
"Enter": "Enter",
3113-
"Space": "Space",
31143114
"End": "End",
31153115
"[number]": "[number]"
31163116
}

0 commit comments

Comments
 (0)