[OCaml] High Intensity Training Online
fix drop redundant Page updated announcement
The SPA content swap moved focus to the swapped-in heading and also announced "Page updated" on the polite live region. Focus movement already signals the change to assistive tech, so the message was redundant noise on every workout logging navigation. Keep the transient Loading and Saving announcements; the fresh status node starts empty, so they clear when the swap lands.
lib/web/workout_client.ml
@@ -96,7 +96,10 @@
96
96
heading##setAttribute (Js.string "tabindex") (Js.string "-1");
97
97
heading##focus
98
98
| None -> ());
99
Removed:
announce "Page updated";
99
Added:
(* No "Page updated" announcement: moving focus to the swapped-in heading
100
Added:
already tells assistive tech the content changed, so a status message
101
Added:
would be redundant noise. Transient "Loading"/"Saving" still clear when
102
Added:
the swap lands, because the fresh status node starts empty. *)
100
103
start_timer ();
101
104
true
102
105
| _ -> false