Skip to content

fix(overview): favourite indicator accessible name, mime-escape comment - #148

Open
moodyjmz wants to merge 2 commits into
mainfrom
fix/overview-a11y-and-search-comment
Open

fix(overview): favourite indicator accessible name, mime-escape comment#148
moodyjmz wants to merge 2 commits into
mainfrom
fix/overview-a11y-and-search-comment

Conversation

@moodyjmz

@moodyjmz moodyjmz commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Give the list-view favourite star an accessible name (NcIconSvgWrapper defaulted to aria-hidden with no name prop — favourited status was icon+colour only).
  • Clarify the comment above escapeXml in officeFiles.ts — the escaping is safe because it lands in <d:literal> element text, not because the mime list is a closed literal set (it also includes server-registered mimetypes).

Test plan

  • npm run lint
  • npm run test:unit (new regression test for the favourite indicator's accessible name)
  • npm run build

moodyjmz and others added 2 commits September 1, 2026 21:54
The list-view favourite star (NcIconSvgWrapper) rendered with no `name`
prop, so it defaulted to aria-hidden. Favourited status was conveyed by
icon and colour alone, with no adjacent text, making it invisible to
screen readers.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
The escaping (&, <, >) is complete because it only ever lands inside
<d:literal> element text, not an attribute — not because the input is
a closed literal set. `mimes` also includes server-registered
mimetypes from the templates endpoint, not just this file's own
constants, so the safety argument needed to be explicit about where
it actually comes from.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant