-
Notifications
You must be signed in to change notification settings - Fork 68
Ensure link names are unique for accessibility, thanks @nickvergessen, fix #575 #576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/backport to stable21 |
115421f to
8cae3c1
Compare
…ix #575 Signed-off-by: Jan C. Borchardt <[email protected]>
8cae3c1 to
38a31e5
Compare
|
Pushed a fix to the unit tests |
Signed-off-by: Joas Schilling <[email protected]>
e53e216 to
1463a74
Compare
| 'isMimeTypeIcon' => true, | ||
| 'fileId' => $fileId, | ||
| 'view' => $info['view'] ?: 'files', | ||
| 'filename' => basename($filePath), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickvergessen This is an REST API change, shouldn't it be documented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before, there were a lot of duplicate links on the page all saying "Open file", which makes it a problem for screen readers:

This is now fixed by changing the link to say "Open
filename" stating the actual filename.Since the links are already there in text form directly above, in the future we could also remove the duplicate linked images from screenreader flow by using divs for them and triggering the link via Javascript.