️(frontend) add nb accesses in share button aria-label

Expose nb_accesses_direct to screen readers when share button shows count.
This commit is contained in:
Cyril 2026-03-16 16:03:43 +01:00
parent 7cf144e0de
commit 1172fbe0b5
No known key found for this signature in database
GPG key ID: D5E8474B0AB0064A
2 changed files with 5 additions and 2 deletions

View file

@ -9,11 +9,12 @@ and this project adheres to
### Changed
- ♿️(frontend) ensure doc title is h1 for accessibility #2006
- ♿️(frontend) add nb accesses in share button aria-label #2017
### Fixed
- 🐛(frontend) fix image resizing when caption #2045
- 🙈(docker) add **/.next to .dockerignore #2034
- 🙈(docker) add \*\*/.next to .dockerignore #2034
- ♿️(frontend) fix share modal heading hierarchy #2007
- ♿️(frontend) fix Copy link toast accessibility for screen readers #2029
- ♿️(frontend) fix modal aria-label and name #2014

View file

@ -55,7 +55,9 @@ export const BoutonShare = ({
`}
>
<Button
aria-label={t('Share button')}
aria-label={t('Share button, shared with {{count}} users', {
count: doc.nb_accesses_direct,
})}
variant="secondary"
icon={
<Icon