fix(a11y/dialogs) fix dialog with tabs not setting an a11y label

This was already done correctly on <Dialog> but not <DialogWithTabs>.
Passing the given titleKey to the dialog component so that the dialog
matches the dialog aria pattern and screen reader users get a good
experience
This commit is contained in:
Emmanuel Pelletier 2023-02-27 17:24:35 +01:00
parent 2d9f9fd8b9
commit 506e0523c6
1 changed files with 2 additions and 1 deletions

View File

@ -310,7 +310,8 @@ const DialogWithTabs = ({
<BaseDialog
className = { cx(classes.dialog, className) }
onClose = { onClose }
size = 'large'>
size = 'large'
titleKey = { titleKey }>
{(!isMobile || !selectedTab) && (
<div
aria-orientation = 'vertical'