Skip to content

Commit

Permalink
🗣️ Screen reader support for reactive output changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Dec 18, 2023
1 parent f6e8407 commit b2504a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/components/CellOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}:`}
>
<assignee translate=${false}>${prettyAssignee(this.props.rootassignee)}</assignee>
<assignee aria-hidden="true" translate=${false}>${prettyAssignee(this.props.rootassignee)}</assignee>
<${OutputBody} ...${this.props} />
</pluto-output>
`
Expand Down

0 comments on commit b2504a8

Please sign in to comment.