Skip to content

fix(files): proper accessible row name and title for overflow#61658

Open
susnux wants to merge 1 commit into
masterfrom
fix/files-node-name
Open

fix(files): proper accessible row name and title for overflow#61658
susnux wants to merge 1 commit into
masterfrom
fix/files-node-name

Conversation

@susnux

@susnux susnux commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

In the files list before this the accessible name of the button (default action) was overridden to the default action display name. But this causes problem for screen readers because then the whole table row is just called "view" or "download" instead of using the inner text (e.g. "filename.txt").

This fixes it to rename it ACTION: FILENAME instead.

Also when long names were truncated there were no useful title (tooltip) for it, so it was not possible to get the real name. This is fixed by always provide a proper tooltip including the full name.

before after
Bildschirmfoto_20260629_163304 Bildschirmfoto_20260629_163333

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@susnux susnux added this to the Nextcloud 35 milestone Jun 29, 2026
@susnux susnux requested review from a team and skjnldsv as code owners June 29, 2026 14:42
@susnux susnux added bug 3. to review Waiting for reviews labels Jun 29, 2026
@susnux susnux requested review from nfebe and removed request for a team June 29, 2026 14:43
@susnux susnux requested a review from sorbaugh June 29, 2026 14:43
@susnux susnux added accessibility team: Files Code maintained by 📁 Files team labels Jun 29, 2026
is: 'span',
params: {
title: t('files', 'This node is unavailable'),
title: this.source.displayname + `(${t('files', 'unavailable')})`,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like a word puzzle

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean?

- resolves #59203
- resolves #56611

In the files list before this the accessible name of the button (default
action) was overridden to the default action display name.
But this causes problem for screen readers because then the whole table
row is just called "view" or "download" instead of using the inner text
(e.g. "filename.txt").

This fixes it to rename it `ACTION: FILENAME` instead.

Also when long names were truncated there were no useful title (tooltip)
for it, so it was not possible to get the real name.
This is fixed by always provide a proper tooltip including the full
name.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/files-node-name branch from d7a3717 to 2bd8ec1 Compare June 29, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews accessibility bug feature: files team: Files Code maintained by 📁 Files team

Projects

None yet

2 participants