From b2504a89c49183e5aeb1ab65fe52129e2b5761c0 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Mon, 18 Dec 2023 14:47:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=A3=EF=B8=8F=20Screen=20reader=20suppo?= =?UTF-8?q?rt=20for=20reactive=20output=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/components/CellOutput.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/components/CellOutput.js b/frontend/components/CellOutput.js index a58979b88e..12b3d508e9 100644 --- a/frontend/components/CellOutput.js +++ b/frontend/components/CellOutput.js @@ -84,8 +84,12 @@ export class CellOutput extends Component { })} translate=${allow_translate} mime=${this.props.mime} + aria-live="polite" + aria-atomic="true" + aria-relevant="all" + aria-label=${this.props.rootassignee == null ? "result of unlabeled cell:" : `result of variable ${this.props.rootassignee}:`} > - ${prettyAssignee(this.props.rootassignee)} + <${OutputBody} ...${this.props} /> `