microsoft / roosterjs

roosterjs is a framework-independent javascript rich text editor.
Other
1.17k stars 157 forks source link

[A11y] Add annoncements when a bulleted and numbered lists are created #2735

Closed vhuseinova-msft closed 2 months ago

vhuseinova-msft commented 3 months ago

Describe the bug Currently RoosterJS allow to customize strings for announcing announceListItemBullet, announceListItemNumbering and announceOnFocusLastCell. This GitHub issue is for adding a few new options when:

To Reproduce Steps to reproduce the behavior:

  1. Open RoosterJS demo app
  2. Add a numbered/bulleted list
  3. Observe that there is no announcements that lists are created (and there is no options to set this in code)

Expected behavior Developers are able to add/customize strings that will be used when bulleted/numbered lists are created.  

Device Information

vhuseinova-msft commented 3 months ago

cc @BryanValverdeU

BryanValverdeU commented 2 months ago

@vhuseinova-msft We are just going to set the announcing when the list is created with AutoFormat, When the function toggleNumbering or toggleBullet is triggered from a button, other apps like Word do not announce the action.

A work around if you want to announce when the action is triggered with a button is to call editor.announce(...announceData).