#109017Focus not returned to edit icon after page title editing
Description
In the “Page” module, the page title can be edited inline via the pencil icon next to the page heading. After finishing the edit (save or cancel), the interface loses the visible keyboard focus, and the focus is not returned to the triggering pencil icon. This makes keyboard operation harder and negatively affects accessibility.
Steps to Reproduce
- Log into the TYPO3 backend.
- Open the “Page” module and select a page so that the page details are visible.
- Focus the pencil (“Edit”) icon next to the page heading using the keyboard and activate it (e.g. Enter).
- Change the page title and either confirm/save or cancel the edit (e.g. Esc).
- Observe where the keyboard focus is afterwards and that no visible focus highlight remains.
Impact
- Keyboard users lose their current position in the interface.
- Screen reader and keyboard users need to search for the focus again.
- Violates accessibility requirements (e.g. WCAG 2.1 – focus order and visible focus).
Definition of Done
- After ending the page title edit, focus is always returned to the pencil icon.
- A clearly visible focus indicator is shown on the pencil icon.
- Manual tests with keyboard (Tab/Shift+Tab) and at least one screen reader are performed and documented.
- No unexpected scrolling or focus jumps to other areas of the backend.
- Regression check: Other inline editing functions in the page module keep their behavior or are aligned with this improved focus handling.
Acceptance Criteria
- After saving or cancelling the page title edit, keyboard focus is placed back on the pencil icon next to the page heading.
- A clearly visible focus outline or focus style is present on the pencil icon when focused.
- Keyboard-only usage: The page title can be edited smoothly without losing focus.
- Screen reader: After finishing the edit, the pencil icon is announced/recognizable again when focus returns to it.