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:
parent
2d9f9fd8b9
commit
506e0523c6
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue