Skip to content

Commit f3fe93b

Browse files
committed
UX: Update frontend/src/common/README.md photoprism#5145 photoprism#5307 photoprism#5313
Signed-off-by: Michael Mayer <[email protected]>
1 parent 05e4fdf commit f3fe93b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frontend/src/common/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
## Focus Management
66

7-
PhotoPrism keeps keyboard focus predictable across pages and dialogs by relying on the shared view helper (`frontend/src/common/view.js`).
7+
PhotoPrism maintains predictable keyboard focus across pages and dialogs by using a shared view helper:
88

9-
The helper tracks which component is currently active, applies focus when views change, and traps focus inside open dialogs so tabbing never leaks into the page behind an overlay. This document explains how to cooperate with the helper when building new UI.
9+
- [`frontend/src/common/view.js`](https://github.com/photoprism/photoprism/blob/develop/frontend/src/common/view.js)
10+
11+
This helper tracks the currently active component, applies focus when views change, and traps focus inside open dialogs, ensuring that tabbing never leaks into the page behind an overlay. The following guidelines explain how to work with the helper when building UI functionality.
1012

1113
### Tabindex Cheat Sheet
1214

0 commit comments

Comments
 (0)