[MM-62983] Add aria-live region for updating the file preview modal carousel position (#31296)

Этот коммит содержится в:
Devin Binnie
2025-06-04 08:47:10 -04:00
коммит произвёл GitHub
родитель 20e3715f76
Коммит a19eb5b9ef
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@@ -24,6 +24,8 @@ exports[`components/file_preview_modal/file_preview_modal_main_nav/FilePreviewMo
</button>
</WithTooltip>
<span
aria-atomic="true"
aria-live="polite"
className="modal-bar-file-count"
>
<MemoizedFormattedMessage

Просмотреть файл

@@ -58,7 +58,11 @@ const FilePreviewModalMainNav: React.FC<Props> = (props: Props) => {
return (
<div className='file_preview_modal_main_nav'>
{leftArrow}
<span className='modal-bar-file-count'>
<span
className='modal-bar-file-count'
aria-live='polite'
aria-atomic='true'
>
<FormattedMessage
id='file_preview_modal_main_nav.file'
defaultMessage='{count, number} of {total, number}'