mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-08 02:37:53 +02:00
♿️(frontend) link export modal name to its heading
Link aria-describedby to modal description, not title
This commit is contained in:
@@ -18,6 +18,7 @@ and this project adheres to
|
||||
- ♿️(frontend) use heading element for pinned documents section title #2380
|
||||
- ♿️(frontend) use anchor links for table of contents entries #2390
|
||||
- ♿️(frontend) improve presenter mode screen reader and keyboard support #2383
|
||||
♿️(frontend) link export modal name to its heading #2422
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
@@ -219,8 +219,8 @@ export const ModalExport = ({ onClose, doc }: ModalExportProps) => {
|
||||
closeOnClickOutside
|
||||
onClose={() => onClose()}
|
||||
hideCloseButton
|
||||
aria-label={t('Export')}
|
||||
aria-describedby="modal-export-title"
|
||||
aria-labelledby="modal-export-title"
|
||||
aria-describedby="modal-export-description"
|
||||
rightActions={
|
||||
<>
|
||||
<Button
|
||||
@@ -272,7 +272,12 @@ export const ModalExport = ({ onClose, doc }: ModalExportProps) => {
|
||||
$gap="1rem"
|
||||
className="--docs--modal-export-content"
|
||||
>
|
||||
<Text $variation="secondary" $size="sm" as="p">
|
||||
<Text
|
||||
$variation="secondary"
|
||||
$size="sm"
|
||||
as="p"
|
||||
id="modal-export-description"
|
||||
>
|
||||
{t(
|
||||
'Export your document to print or download in .docx, .odt, .pdf or .html(zip) format.',
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user