From 6319407cab89a762a7db0312f468eb36e08653ee Mon Sep 17 00:00:00 2001 From: Marco Zehe Date: Thu, 13 Feb 2020 16:02:58 +0100 Subject: [PATCH 1/2] Move the sidebar to below the sidebar tab buttons for screen readers. Do this by aria-owning the sidebar into the header wrapper. aria-owned subtrees get added as the last child after all other child elements that are in the DOM. This way, if a sidebar tab is activated, the aside element now is inserted in a position following the tabs, before the main messages list. The association for screen readers is therefore more logical. This has no bearing on the DOM order or CSS properties. aria-owns simply rearranges the accessibility tree. Fixes vector-im/riot-web/issues/11319 Signed-off-by: Marco Zehe --- src/components/structures/RightPanel.js | 2 +- src/components/views/rooms/RoomHeader.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index 45722caa98..90e71a770b 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -285,7 +285,7 @@ export default class RightPanel extends React.Component { }); return ( -