fix(dialog) Fix initial focus (#12509)
Don't focus on the close button if there's another focusable element
This commit is contained in:
parent
f3e4c57036
commit
cbb8b5f620
|
@ -282,8 +282,14 @@ const Dialog = ({
|
|||
onClick = { onClose } />
|
||||
)}
|
||||
</div>
|
||||
<div className = { classes.content }>{children}</div>
|
||||
<div className = { classes.footer }>
|
||||
<div
|
||||
className = { classes.content }
|
||||
data-autofocus-inside = 'true'>
|
||||
{children}
|
||||
</div>
|
||||
<div
|
||||
className = { classes.footer }
|
||||
data-autofocus-inside = 'true'>
|
||||
{!back.hidden && <Button
|
||||
accessibilityLabel = { t(back.translationKey ?? '') }
|
||||
labelKey = { back.translationKey }
|
||||
|
|
|
@ -37,7 +37,8 @@ function CopyMeetingLinkSection({ url }: IProps) {
|
|||
<>
|
||||
<label
|
||||
className = { classes.label }
|
||||
htmlFor = { 'copy-button-id' }>{t('addPeople.shareLink')}</label>
|
||||
htmlFor = { 'copy-button-id' }
|
||||
id = 'copy-button-label'>{t('addPeople.shareLink')}</label>
|
||||
<CopyButton
|
||||
aria-label = { t('addPeople.copyLink') }
|
||||
className = 'invite-more-dialog-conference-url'
|
||||
|
|
Loading…
Reference in New Issue