Behaviour SwRS-MDOKFSTUDIO-PALETTE-252
The slash menu is an announced listbox of text-only rows
While the slash menu is open, the extension SHALL expose it as a listbox named Commands with option rows, announce the number of commands in a polite live region, set every entry as text, and keep the lit command readable when the system forces colours.
Part of StRS-MDOKFSTUDIO-PALETTE-015, outside the paths drawn on its map.
Scenarios 5
The situations the tests check; open one to read it.
nominalOpen menu
Givenan open menu
Whenthe accessibility state is read
Thenthe list has the role listbox and the name Commands, the rows have the role option and the text box points at the lit row with aria-activedescendant, aria-expanded and aria-controls
boundaryClosed menu
Giventhe menu closes
Whenthe text box is read
Thenthe three attributes are gone
boundaryLive region count
| Matches | Live region text |
|---|---|
| 3 | 3 commands available |
| 1 | 1 command available |
| none | No command |
refusalEntry text is never markup
| Given | When | Outcome |
|---|---|---|
| a command label that contains a tag | the menu renders | the tag is shown as text |
| a command with an icon | the menu renders | the icon is the static SVG of the palette button, the only markup |
| a command with a shortcut and a category | the menu renders | both are set as text |
boundaryForced colours
| Mode | Colours |
|---|---|
| system in forced-colours mode | the menu is drawn with Canvas and CanvasText; the lit command has background Highlight, text HighlightText and its category and shortcut HighlightText |
| usual mode | the theme colours are used |