Skip to content

[stable33] fix(a11y): make team folder edit buttons keyboard-operable#4911

Open
backportbot[bot] wants to merge 4 commits into
stable33from
backport/4825/stable33
Open

[stable33] fix(a11y): make team folder edit buttons keyboard-operable#4911
backportbot[bot] wants to merge 4 commits into
stable33from
backport/4825/stable33

Conversation

@backportbot

@backportbot backportbot Bot commented Jul 16, 2026

Copy link
Copy Markdown

Backport of PR #4825

mvanhorn and others added 4 commits July 16, 2026 17:03
The team folders admin settings table rendered its rename and delete row
controls as bare <a> elements with an onClick handler but no href. Anchors
without an href are not part of the tab order and do not respond to
Enter/Space, so keyboard-only and screen-reader users could not rename or
delete a team folder.

Replace those non-interactive anchors with native <button type="button">
elements that carry the existing onClick handlers and a discernible
aria-label, restoring keyboard operability and a non-empty accessible name.
Add minimal SCSS to strip the default button chrome so the controls keep
their prior icon/text appearance.

Fixes #4466

Signed-off-by: Matt Van Horn <mvanhorn@gmail.com>
Address review feedback: an aria-label of just "Rename" overrode the
visible mount-point text as the button's accessible name, exposing every
row only as "Rename". Include the folder name in the label so each row
stays identifiable to screen-reader and voice-control users.

Signed-off-by: Matt Van Horn <mvanhorn@gmail.com>
Address review feedback: the FolderGroups column also renders an
<a class="action-rename">, so an unscoped reset (notably color: inherit)
leaked into that anchor and overrode its lighter link color. Scope the
button-chrome reset to button.action-rename so the sibling anchor keeps
its existing styling.

Signed-off-by: Matt Van Horn <mvanhorn@gmail.com>
The mountpoint name moved from <a> to <button class="action-rename">, so the
td.mountpoint a rule (color: main-text, bold) no longer matched and the folder
name lost its emphasis. Extend the selector to button.action-rename; its higher
specificity overrides the color: inherit / font: inherit from the button-chrome
reset. Verified: stylelint clean, vite production build passes.

Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
@backportbot backportbot Bot requested a review from susnux July 16, 2026 17:03
@backportbot backportbot Bot added bug 3. to review Items that need to be reviewed accessibility labels Jul 16, 2026
@backportbot backportbot Bot added this to the Nextcloud 33 milestone Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Items that need to be reviewed accessibility bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants