Repository navigation
fix(admin): re-audit minors in the editor field (names, focus, panels, mobile, dark mode, translations) - #38
Merged
Merged
Conversation
Re-audit minors (field panels, side panel, AI dialogs): - Grammar panel takes focus when it opens; Escape closes the grammar and quality panels (not inside an open listbox, menu or dialog). - Cancel/Escape on the template "replace" and version "restore" confirms returns focus to the button that asked. - Comments: focus back on Reply after sending or cancelling a reply and on Edit after saving or cancelling an edit; a failed first load shows the error with Try again and no zero counts or read-only text. - Focus stays in the find panel after Replace all, returns to "Check links" after the check, and the suggestions panel takes lost focus after a reviewer sent suggestions. - Presence join/leave is announced once per entry, not once per field. - Contextual names for Edit/Delete/Reply/Resolve/Reopen and Accept/Reject/Withdraw/Show block. - Side panel "Check"/"Show" are DS buttons (size S) instead of text buttons. - "No links were checked." instead of "no problems" when every link was skipped. - AI dialogs: shared messages for UNREACHABLE, BAD_RESPONSE, RESPONSE_TOO_LARGE, EMPTY and PROVIDER_ERROR. Docs read: DS 2.3.1 Button/IconButton types, @strapi/admin 5.63 ConfirmDialog, Radix Dialog onOpenChange (focus restore), React hooks rules (react.dev purity). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e in the field
Re-audit minors and cosmetics (editor field):
- The editor is a group named by the field label (aria-labelledby, as
Strapi Blocks); inline toolbar buttons get their tool's name; the
component block switch is named after its attribute.
- Alt+F10 enters the inline toolbar, arrows move, Escape returns to the
selected text; Escape in the link input returns to the text.
- Video, audio and attachment blocks get focus on Choose after insert;
Media Library Confirm/Escape put the caret back into the editor.
- Suggest mode keeps only the More tools entries that work there.
- Panel Escape no longer blocked by the IconButton tooltip; grammar check
and fix keep focus.
- Person CSP notice in its own row; handles 32 px below 520 px, DS surface
instead of Editor.js' white mobile buttons; DS overlay for the bottom
sheet; color-scheme for native controls; attaches hover, image tool,
loader and "Nothing found" tokens.
- Indent tune, embed/attachment placeholders, "Plain text" and "HTML and
XML" translated in en/de/fr/es/pt; panel keys from the parallel commit.
Docs read: Editor.js 2.31.7 dist (InlineToolbar shortcuts need the popover,
built after the debounced selectionchange; i18n namespaces tools/<name>,
blockTunes/<tune>; 650 px mobile CSS), @editorjs/attaches 1.3, @editorjs/image
2.10, editorjs-indent-tune 1.4 bundle, DS 2.3.1 Field.Label id
(`${id}-label`), setOpacity, Radix DismissableLayer Escape.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…focus after insert @editorjs/attaches 1.3 renders the button as a clickable div. It gets role=button, a tab stop and Enter/Space, so Tab reaches it and the field focuses it after the block is inserted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Schero94
force-pushed
the
fix/ui-reaudit-minors
branch
from
November 20, 2026 15:12
a420dde to
570af2e
Compare
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 20, 2026
## [2.8.3](v2.8.2...v2.8.3) (2026-11-20) ### Bug Fixes * **admin:** accessible names, focus, panels and translations in the editor field ([#38](#38)) ([cd9e7c7](cd9e7c7)) ### Fixed (editor field: names, focus, panels, translations) - **Names.** The editor of a field is a group named by the field label (as Strapi's Blocks field). Inline toolbar buttons are named after their tool, the component block switch after its attribute, and the repeated Accept, Reject, Edit, Reply, Resolve and Reopen buttons say whose comment or suggestion and which text they act on. - **Inline toolbar by keyboard.** With text selected, Alt+F10 moves focus into the inline toolbar (as in the table and column tools), the arrow keys move between its buttons, and Escape goes back to the selected text. Escape in the link input returns to the text too. The shortcut timing (Ctrl/Cmd+I, U, Shift+M, K pressed within about 150 ms of selecting) is Editor.js behaviour: its inline tool shortcuts work only once the inline toolbar was built after the debounced selection change (Editor.js 2.31 `InlineToolbar.enableShortcuts`); it is left as is. - **Focus.** After inserting a video, audio or attachment block, focus is on its Choose button. After the Media Library dialog (Confirm, Escape or Close), the caret is in the inserted image or back where the block was inserted. After posting a reply or cancelling an edit, after sending suggestions, after Replace and Replace all, after Check links and after a grammar check or fix, focus stays on a defined control. Cancel or Escape in the template replace and version restore confirmations returns to the button that opened them. The grammar panel takes focus, and Escape closes the quality, grammar, comments and suggestions panels also when the focused button shows its tooltip. - **States.** A comments load error shows the error with Try again instead of read-only with zero counts. "No links were checked." replaces "Link check finished: no problems" when nothing was checked. The AI dialogs show their own messages for `UNREACHABLE`, `BAD_RESPONSE`, `RESPONSE_TOO_LARGE`, `EMPTY` and `PROVIDER_ERROR`. - **Suggest mode.** More tools offers only the entries that work while suggesting (keyboard shortcuts); the others acted on the hidden field. - **Presence.** Joining and leaving the entry is announced once per entry, not once per field. - **Layout and dark mode.** A blocked person photo shows its Content Security Policy notice in its own row instead of the 72 px circle. Below 650 px the **+** and block menu handles use the DS surface and border (they were white in dark mode) and 32 px targets on phones; the bottom sheet's backdrop uses the DS overlay colour. The side panel's Check is a DS button. Native checkboxes, selects and inputs in blocks follow the admin theme (`color-scheme`), and the attachment download hover, the image tool, the loader and "Nothing found" no longer show Editor.js' light colours in dark mode. - **Translations.** The indent block tune, the embed caption and attachment title placeholders and the code languages "Plain text" and "HTML and XML" are translated in all five admin languages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second of three stacked PRs for the UI re-audit of the editor field. Base: #36 (retarget to
mainafter #36 is merged). Settings pages are out of scope.Before / after (isolated host, Strapi 5.63, packed tarball, headless Chromium)
role=group,aria-labelledby= field label (f6: "group -> body")s6)s6: Convert to, Bold, Italic, Link, …; inline code via package-title fallback)f6)InlineToolbar.enableShortcutshandler needs the popover built after the debouncedselectionchange) — documented in CHANGELOGf6)s25: Escape →ce-paragraph)switch "featured"(s33)s33: text 505×95 at 1440, 193×200 at 390); unit tests18); attachment: see notet4)t13); Escape closes Quality, Grammar, Comments, Suggestions (t12, was blocked by the IconButton tooltip's preventDefault)t15)t5)t6,t9,t16)c4: one join, one leave with 2 fields)t16)#f2f2f2, checkboxcolor-scheme: normal, image-tool/loader/nothing-found lightcolor-scheme: darkon all native controls (s32)Tests:
tests/admin/{inline-toolbar,csp-person,panels-a11y}.test.jsx,tests/{ai-errors,presence-announce}.test.mjs. lint, format:check, npm test (1000), test:admin (74), test:core-blocks (33) green locally.Docs read: Editor.js 2.31.7 dist (inline toolbar, i18n namespaces, 650 px CSS), @editorjs/attaches 1.3, @editorjs/image 2.10, editorjs-indent-tune 1.4, DS 2.3.1 (
Field.Labelid,setOpacity, IconButton/Tooltip), Radix DismissableLayer.🤖 Generated with Claude Code