From b0b379e167f92dcd219047d343ef7334e3a10637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20V=C3=A9lez?= Date: Wed, 19 Feb 2025 00:26:41 -0500 Subject: [PATCH] MM-61634 - adjust rhs a11y structure (#30168) Co-authored-by: Mattermost Build --- webapp/channels/src/components/channel_info_rhs/header.tsx | 4 +++- .../channels/src/components/channel_members_rhs/header.tsx | 4 +++- .../__snapshots__/post_edit_history.test.tsx.snap | 2 ++ .../components/resizable_sidebar/resizable_rhs/index.tsx | 7 ++++++- .../src/components/rhs_card_header/rhs_card_header.tsx | 5 ++++- .../src/components/rhs_header_post/rhs_header_post.tsx | 5 ++++- .../search_results_header/search_results_header.tsx | 5 ++++- .../src/components/sidebar_right/sidebar_right.tsx | 4 ++++ 8 files changed, 30 insertions(+), 6 deletions(-) diff --git a/webapp/channels/src/components/channel_info_rhs/header.tsx b/webapp/channels/src/components/channel_info_rhs/header.tsx index 0e7cab25a8..8533a16ae0 100644 --- a/webapp/channels/src/components/channel_info_rhs/header.tsx +++ b/webapp/channels/src/components/channel_info_rhs/header.tsx @@ -41,7 +41,9 @@ const Header = ({channel, isArchived, isMobile, onClose}: Props) => { /> )} - + { )} - + Edit History
Edit History
{ children: React.ReactNode; rightWidthHolderRef: React.RefObject; + ariaLabel?: string; + ariaLabeledby?: string; } function ResizableRhs({ @@ -22,6 +24,8 @@ function ResizableRhs({ id, className, rightWidthHolderRef, + ariaLabel, + ariaLabeledby, }: Props) { const containerRef = useRef(null); @@ -91,7 +95,8 @@ function ResizableRhs({ className={className} role={role} ref={containerRef} - aria-labelledby='rhsPanelTitle' + aria-label={ariaLabel} + aria-labelledby={ariaLabeledby || 'rhsPanelTitle'} > {children} { return (
- + {back} { return (
- + {back} - + {props.canGoBack && (