PositionHasError
Plays a signal - sound (audio cue) and/or announcement (alert) - when the active line has a warning. BUG 1
{
"accessibility.signals.positionHasError": {
"sound": "auto",
"announcement": "auto"
} // default
}
Type
object
Default
{
"sound": "auto",
"announcement": "auto"
}
Object Properties
| Key | Type | Default | Range | Description |
|---|---|---|---|---|
"sound" | string | "auto" | "auto", "off", "on" | Plays a sound when the active line has a warning. BUG 2 |
"announcement" | string | "auto" BUG 3 | "auto", "off", "on" BUG 4 | Announces when the active line has a warning. BUG 5 |
Description
Controls if sound and announcement signals are played when an Editor column that has an error, or either of its adjacent columns, gains focus.
When "sound" is set to"auto", the sound signal will play whenever an Editor column that has an error, or either of its adjacent columns, gains focus and a screen reader is detected or "editor.accessibilitySupport": "on". When set to "off", the sound signal will never play even when a screen reader is detected or "editor.accessibilitySuport": "on". When set to "on", the sound signal will always play even when a screen reader is not detected or "editor.accessibiltySupport": "off".
When "announcement" is set to "auto", the screen reader will make the announcement whenever an Editor column that has an error, or either of its adjacent columns, gains focus and a screen reader is detected. When set to "off", the screen reader will never make an announcement even when a screen reader is detected.
BUGS
- Should say
Plays a signal - sound (audio cue) and/or announcement (alert) - when the active line has **an error**. - Should say
Plays a sound when the active line has **an error**. - Intellisense says default is
"on". Should say"auto". "on"is not a valid value for announcements since it suggests that a screen reader would make announcements even if one is not detected.- Should say
Announces when the active line has **an error**.