Accessibility

How the chat screen and widget meet WCAG 2.1 AA

The commitment, how testing is done on phone and desktop, and how to report a barrier so it gets a fix.

WCAG 2.1 AA commitment for the chat screen and website widget

The same standard applies in the signed-in app and on a college website.

  • The chat screen and the website widget are built to meet WCAG 2.1 AA.
  • An accessibility audit with keyboard and screen reader testing is part of the pilot.
  • Gaps found in the audit are fixed before campus-wide rollout.
  • College accessibility staff are invited into the pilot group.

How testing is done with keyboard and screen readers on phone and desktop

Testing follows the work people actually do.

  1. Keyboard only

    Open the widget, ask a question, follow a source link, rate an answer, and hand off to an office without using a mouse.

  2. Screen reader

    Read the welcome message, the answer, and the source links on desktop and on a phone, and confirm new answers are announced.

  3. Forms and checks

    Complete a labeled form, check error messages next to fields, and confirm focus returns to the place you left.

Accessibility checklist beside a labeled chat screen

Labels, headings, focus, contrast, and tap targets on every screen

Small details that make the chat usable for everyone.

Labels and headings

Every field has a label, headings run in order on each page, and source links say where they go.

Focus and contrast

Focus is visible on every control, text and controls meet AA contrast, and help text sits next to the field it explains.

Phone and text size

The layout stacks to one column on a phone, tap targets are generous, and text stays readable at large sizes.

Before publishing, a college checks the widget on a test page. Follow the Publish the widget guide.

How to report a barrier and what happens next

Report it in the way that helps the fix the most.

  1. Note the screen and device

    Write down the page or screen, the device, and the assistive technology you use.

  2. Describe what happened

    State the step you tried and what you expected to happen.

  3. Send it to the college contact

    Use the college contact named for accessibility in the app, or send the note through the contact page.

  4. Track the fix

    The report is logged, assigned to an owner, and checked again with keyboard and screen reader before it is closed.

Accessibility conformance report (VPAT) status during evaluation, stated plainly

No completed accessibility conformance report is claimed today.

  • A VPAT for the college configuration will be completed during evaluation.
  • Audit results, known gaps, and fix dates are recorded for the college during the pilot.
  • Training materials are captioned and screen reader friendly.

Test it as a visitor

Open a college page with the widget, or sign in to the app and ask a question by keyboard.

Voice use: speech input, spoken answers, and text equivalents

Voice is optional on public pages. Every action that can be done by voice can also be done by typing and by keyboard. No answer needs sound, and no form needs a microphone.

Speech input is a Dictate button beside text areas, text fields, and search fields. Spoken answer playback means a control that reads an answer aloud on the page. A voice-only shortcut means an action that needs a spoken command or a sound to work. The table below states what exists for each one, what the text equivalent is, how keyboard access works, how to pause or stop, and what to do without speech.

Voice features compared with text, keyboard, stop, and non-speech options
Voice featureText-only equivalentKeyboard accessPause or stopNon-speech fallback
Dictate in a text field. The button is labeled Dictate plus the field name. It does not appear on email, password, number, phone, web address, date, file, choice, or hidden fields.Type in the same field. Dictation only adds text to the field. It never sends a form on its own.Tab to the Dictate button and press Enter or Space to start. While listening, the same button reads Stop dictation. Press Escape to stop.There is no pause or resume. Stop ends the session. Choose Dictate again to add more in a new session. One session runs at a time. Choosing Dictate on another field stops the first field first.Type instead. If the browser has no speech support, or the connection is not secure, the page states that dictation is not available. The field stays open for typing and no voice is sent.
Spoken answer playback. No in-page control reads an answer aloud on public pages in this pack. Answers and guidance are text on the page.Read the answer and each source link as text on the screen. The text is complete without sound.Move by keyboard to the answer text and to each source link in order. No sound control is needed to reach any link or action.Nothing plays on the page, so there is nothing to pause or stop on the page. Speech from a screen reader can be paused or stopped with screen reader or device controls.Use the text and source links on the screen. A person who needs spoken output uses screen reader speech for the same text. Do not rely on sound to find a source link, a rating, or a handoff.
Voice-only shortcuts. No action needs a spoken command, a gesture, or a sound cue. No shortcut is hidden behind voice.Every dictation action is a labeled button with text. Every other action is a link, button, or field with a label.Reach every control by Tab in page order, with focus visible on each control. The Dictate button is a standard button.Not applicable. No listening state starts unless the person chooses the Dictate button.Voice is optional throughout. A person can complete every form by typing by keyboard alone, on phone or desktop.

How to dictate, check it, and stop it

Use these steps on a form page, such as the demo form or the question form. Dictation uses the page language. On these pages the page language is English. For another language, type the text instead.

  1. Choose Dictate for the field you want

    Choose the Dictate button for that field. Allow microphone access if the browser asks. Voice goes to the browser speech service only while listening. The status text next to the button states that listening has started and names the field.

  2. Speak after listening starts, then stop

    Speak the text for that field after listening starts. Finish speaking, or choose Stop dictation, or press Escape. The dictated text is added at the cursor in the field. Select text in the field and dictate again to replace the selected text. Edit the text in the field if it is wrong. Text stays in the field until you submit the form. Leave out student record details, as the forms state. Password fields have no Dictate button.

  3. Read the status and use the fallback when dictation fails

    The status text states the result in plain words. That includes whether text was added, whether no speech was heard, whether microphone access was not given, whether no microphone was found, whether a connection is needed, or whether the page language is not supported. In each case, type the text instead, or allow microphone access in the browser address bar and try again where the status text says to do so. A failed dictation does not send the form and does not send text to the college.

Check by keyboard only

Tab to each Dictate button, start dictation with Enter or Space, stop it with the Stop dictation button or with Escape, and confirm that typing alone can finish the form.

Check with a screen reader

Confirm that the field label and the Dictate button label are read in order, that the listening and stopped status is announced, and that the answer text and source links can be read without sound.

Check on a phone

Confirm that the Dictate button can be tapped with a target of at least 44 pixels, that the status text is readable, and that the field and the button stack in one column.

  • Dictation never sends a form, never starts without the Dictate button, and never continues after Stop dictation or Escape
  • Answers remain complete as text, with source title, source link, and last checked date, when sound is off
  • No action, link, rating, or handoff needs voice, sound, or a spoken command

Complete accessible voice-input flow, in order

Use this flow in order to build or test Dictate on public pages in this pack. It states microphone permission, language selection, interim display, punctuation and correction before sending, and the non-voice fallback in the order they happen. It adds no new voice feature and it does not describe a feature that is not in the pack.

  1. Step 1: Check support and field type before a button appears

    The page code scans text areas, text fields, and search fields only. A Dictate button appears only when the browser has speech support and the page is on a secure connection, and only on a field that is not disabled, not read-only, not hidden, and not an email, password, number, phone, web address, date, file, choice, or hidden field. The button is placed after the field and the status text is placed after the button. The field lists the status in its description, and the button lists the status as the control it affects. The button is a native button with a pressed state, false when idle and true while listening, and its target is at least 44 pixels. When speech support is missing or the connection is not secure, no button is shown. The status text after the field states that dictation is not available, the field stays open for typing, and no voice is sent. Typing is the fallback in that case, with no extra step.

  2. Step 2: Read the dictation language at session start

    Each session sets the speech service language from the page language, from the lang value on the html element, with en-US as the fallback when that value is missing. There is no language selector for dictation in this pack and the language does not change in the middle of a session. On public pages in this pack the page language is English. A page that changes the page language, such as the sample start page when the language choice is Spanish, changes the dictation language for the next session only. The idle status text states that voice goes to the browser speech service only while listening and that the person can type instead. It does not name the language in words. A person who needs another language checks the page language before speaking and types the text instead when the page language does not match the spoken language. When the speech service reports that the page language is not supported, the status states that dictation does not support the page language in that browser and states to type instead.

  3. Step 3: Explain before the browser asks for microphone access

    The idle status text is shown before the button is chosen. It states that voice is optional, that voice goes to the browser speech service only while listening, that text stays in the field until the form is submitted, and that the person can type instead or select text and dictate again to replace it. Choosing Dictate sets the status to Starting dictation and names the field, and states to allow microphone access if the browser asks. The browser may then ask for microphone access. Allowing access starts listening. Denying access, or a browser that reports access not allowed, sets the status to a plain error that states microphone access was not given, that dictation stopped, that no text was sent, and to type instead or to allow microphone access in the browser address bar and try again. A failed start sends no form, adds no text, and sends no voice to the college.

  4. Step 4: Show listening state and interim text, with no interim insertion

    When listening starts, the button text changes to Stop dictation, the pressed state becomes true, and the status states Listening and names the field. The speech service in this pack is set to final results only, with interim results off. No interim words are shown, inserted, or announced while listening. The status stays at Listening until a final result, an error, or the end of the session. A person who speaks a long passage gets no partial words on screen from the page code in this pack. Status text with role status is the only live text for the session, so frequent partial updates would be announced repeatedly by a screen reader. A builder who adds interim display must update this page in the same change, show interim text in a separate element that is not announced on every update, keep final text as the only inserted text, and test announcement by keyboard and screen reader before shipping. Do not claim interim display on a page until that code and that test ship with the page update.

  5. Step 5: Insert final text with punctuation as returned, then correct in the field before sending

    A final result is trimmed by the page code and inserted at the cursor, or it replaces the selected text when text is selected. The page code adds one space before the inserted text when the text before the cursor does not already end with a space. It adds no space after the inserted text, and it adds no punctuation, capitalization, or word change. Punctuation in the field is only the punctuation returned by the browser speech service for that final result. After insertion, the cursor is placed after the inserted text, focus moves to the field, an input event is dispatched so draft saving runs, and the status states Dictation added and names the next step to edit the text in the field. Correction uses standard field keys in the field. The person can select text and dictate again to replace the selected text, or choose Dictate again for a new session to add more text, in which case the space before rule applies again. Field length limits still apply at submit. A dictated result that is past a limit fails validation in the same way as typed text past the limit. Dictation never sends a form. Sending uses the submit button by keyboard after editing, in the same way as typed text.

  6. Step 6: Stop, error, and non-voice fallback in order

    Stop dictation with the Stop dictation button by Enter or Space, or press Escape anywhere on the page while listening. When the session ends, the button text returns to Dictate plus the field name, the pressed state returns to false, and the status states Dictation added, Dictation stopped, or the error result. One session runs at a time. Choosing Dictate on a second field stops the first session first and states that on the second field status. The person chooses Dictate again to start on the second field. There is no pause and no resume. Error status text states the result in plain words for no speech heard, microphone access not given, no microphone found, a connection needed, and page language not supported, and each error states to type instead or to allow microphone access and try again where the status says so. The non-voice fallback is typing in the same field by keyboard on phone or desktop. Every action, including sending the form, rating an answer, and handoff, is available without voice, sound, or a spoken command. Answers and guidance remain complete as text with source title, source link, and last checked date.

Flow checks before you ship a voice change

  • Support and field type: no Dictate button on email, password, number, phone, web address, date, file, choice, hidden, disabled, or read-only fields, and no button when speech support is missing or the connection is not secure, with the unavailable status read with the field label and typing available in every case
  • Language: session language comes from the page language at session start, a changed page language takes effect on the next session, an unsupported language error states to type instead, and no language selector is claimed in this pack
  • Permission: idle status explains optional voice before the button is chosen, Starting and Listening status names the field, denied access states the plain error with no text added and no form sent, and allow in the browser address bar and try again is stated only where the status states it
  • Interim: no partial words are shown, inserted, or announced in this pack, final results only are inserted, and any future interim display ships with a separate non-announced element, a page update in the same change, and a screen reader announcement test
  • Punctuation and correction: final text is trimmed, one space is added before when needed, no space after and no punctuation or capitalization is added by page code, correction by standard keys and by select and redictate works, cursor and focus after insertion are as stated in Step 5, length limits at submit still apply, and dictation never sends a form
  • Stop and fallback: Stop dictation button and Escape stop while listening, one session at a time with the second field message as stated, each error states type instead, and typing alone can finish the form on phone and desktop with no mouse and no microphone

Complete voice spec: inventory, keyboard equivalents, transcripts and captions, and accessible controls

Use this spec to build or change voice controls on public pages in this pack. It inventories every voice input, voice playback, and audio output path in the pack, states the keyboard equivalent for each voice action, states the visible text for each dictated or spoken result, and lists the control names and states a builder must keep. It adds no new voice feature and it does not describe a feature that is not in the pack.

Inventory of every voice and audio path in this pack

Search the pack files for speech, audio, and video paths before you change a voice control. The table below is the complete inventory for the files in this pack. A path not listed here does not exist in the pack and must not be claimed on a page.

Every voice input, voice playback, and audio output path in pack app-campus.site.1, with disposition
PathWhere in the packInput, playback, or outputDisposition in this spec
Dictate button for speech inputpublic/site.js, on public pages that load site.js, for text areas, text fields, and search fields onlySpeech input only. The browser speech service listens only while a session is active. The page code adds text to the field and sends no voice itself.Keep as described in the voice use section above. Do not add a Dictate button to email, password, number, phone, web address, date, file, choice, or hidden fields.
Dictated text in the fieldThe same field that holds the Dictate buttonVisible text result of speech inputKeep as the transcript. See the transcript rule below. Do not add a separate transcript panel, because the field itself is the visible transcript.
Interim transcript displayNo control in any pack fileSpeech input previewNot built in this pack. Interim results are off, so no partial words are shown, inserted, or announced while listening. Do not claim interim display. A future change that adds interim display must ship the display element, the announcement test, and an update to this page in the same change.
Spoken answer playbackNo control in any pack filePlaybackNot built. Do not add a read-aloud control, a play control, or a spoken answer feature in a change that relies only on this page. Answer text is the text equivalent.
Speech synthesis, audio files, video soundtracks, and notification soundsNo synthesis call, no audio element, no video with sound, and no sound on submit, status, or alert in any pack file listed for this siteAudio outputNot built. No captions are needed for media that does not exist. Do not add audio or video media without captions and a transcript in the same change, and update this page in the same change.
Voice commands, wake word, and voice-only shortcutsNo control in any pack fileSpeech input for commandsNot built. Every action stays a labeled link, button, or field. Do not add a spoken command as the only way to reach an action.
Screen reader speechExternal to the page, in the user device and assistive technologyPlayback of page text by the user toolKeep page text complete and in reading order, with source title, source link, and last checked date in order, and with status text as text. The page does not control screen reader speech and must not claim to pause or stop it.
Dictation in the signed-in app at /app/ and in the widget embedNot in this pack slice. The app page loads /app/app.js and does not load site.js. Widget embed code is not in this pack.Speech inputNot claimed. Do not state that dictation exists in the app or the widget until code for that surface ships and this page is updated in the same change.

Keyboard equivalents for every voice action

Every voice action has a keyboard equivalent in the table below. No voice action needs a mouse, a touch gesture, a spoken command, or a sound cue. The page adds no single-key shortcut for dictation, so a shortcut cannot conflict with typing or with screen reader keys. Escape is the only shortcut, and it works only while listening.

Voice action, keyboard equivalent, focus after the action, and announcement
Voice actionKeyboard equivalentFocus after the actionAnnouncement
Start dictation for one fieldTab to the Dictate button for that field and press Enter or SpaceFocus stays on the button while the session starts. After a result is added, the current code in site.js moves focus to the field where text was added. A change to that focus rule must be tested by keyboard and screen reader and stated on this page in the same change.Status text with role status states Starting dictation and names the field, then states Listening and names the field
Stop dictationPress Enter or Space on the Stop dictation button, or press Escape anywhere on the page while listeningFocus stays where it was, except after a result is added, where the current code moves focus to the field as stated aboveStatus text states Dictation added, Dictation stopped, or the error result in plain words
Add more text in the same fieldPress Enter or Space on Dictate again for the same field, for a new sessionFocus on the Dictate button at the start of the new sessionStatus text states Starting and Listening again and names the field
Replace selected textSelect text in the field by keyboard, then press Enter or Space on Dictate for that fieldFocus moves to the field after the result is added, as stated above, with the cursor after the added textStatus text states Dictation added and names the next step to edit the text in the field
Edit dictated textStandard field keys in the field, such as arrow keys, Home, End, Backspace, and Delete. The page adds no custom edit key.Focus in the field at the cursorThe field value is read as field content by the screen reader
Send the form after dictationTab to the submit button and press Enter or Space. Dictation never sends a form on its own.Focus on the submit button before activation, then on the form status or confirmation as the form code statesForm error or confirmation text as the form code states, in text
Use a field when dictation is unavailableNo Dictate button to tab to. Type in the field by keyboard.Focus in the field in normal tab orderUnavailable status text is in the field description, so it is read with the field label, and no voice is sent

Visible transcript and captions rule

  • The transcript of dictated speech is the text in the field itself, visible on screen, editable by keyboard, and kept in the field until the person submits the form. There is no separate transcript panel in the pack and none is added by this spec.
  • No interim transcript is shown in this pack. The speech service is set to final results only, so partial words are not shown, inserted, or announced while listening. Status stays at Listening until a final result, an error, or the end of the session. A builder who adds interim display must update this page in the same change and test screen reader announcement, because the status element has role status and frequent partial updates would be announced repeatedly.
  • Dictated text is saved as a form draft in this tab while the person types or dictates, with a 250 millisecond pause after typing stops, as site.js states. A draft is restored into the field on reload in the same tab. A draft is not a sent answer and a draft does not count as a submitted question.
  • Field length limits still apply at submit. The page validation and the maxlength on each field state the limit. Dictation does not widen a limit and a dictated result that is past a limit fails validation in the same way as typed text past the limit.
  • Punctuation and spacing in dictated text are as stated in Step 5 of the complete flow above. Page code trims the final result, adds one space before when the text before the cursor does not end with a space, adds no space after, and adds no punctuation, capitalization, or word change. The person edits punctuation and spacing in the field before sending.
  • Captions apply only to audio or video media that plays on the page. No such media exists in this pack, so no caption track is needed and none is claimed. Answer text, guidance text, and status text are already text and are complete without sound. If a future change adds audio or video media, that change must ship captions and a transcript, keyboard access to play, pause, and stop, and an update to this page, in the same change. Do not add media alone.
  • A saved passage, a not-known message, and an unavailable message are text on the screen with the same rules. See Ask and check sources for the check before relying on an answer, and Test answers for the test paths.

Accessible voice controls a builder must keep

  • Button: a native button with type button, placed after the field, with a name that starts with Dictate plus the field name and, where the code adds it, the form kind. The name must identify the field when more than one Dictate button is on the page. While listening, the current code changes the name to Stop dictation without the field name. The status text names the field in that state, and the button sits after that field. A change to include the field name in the Stop name must update this page in the same change.
  • Button state: the button carries a pressed state that is false when idle and true while listening, so a screen reader user hears the state change as well as the status text.
  • Status: a text element after the button, with a unique id per field, with role status, that does not receive focus. The field lists the status id in its description along with any existing help text id, and the button lists the status id as the control it affects. Status text does not focus the page and does not move the user away from the control in use, except for the focus move after a result that is stated in the keyboard table above.
  • Language: the speech service language comes from the page language at session start, as stated in Step 2 of the complete flow above. There is no dictation language selector in this pack. An unsupported language error states to type the text instead.
  • Target and focus: the Dictate button is at least 44 pixels in each dimension, focus is visible by keyboard, and the field, button, and status stack in one column on a phone.
  • One session at a time: choosing Dictate on a second field stops the first session and states that on the second field status. The person chooses Dictate again to start on the second field. There is no pause and no resume in the pack.
  • Error text: each error states the result in plain words and the fallback to type instead, or to allow microphone access in the browser address bar and try again where the status text says to do so. The error states cover no speech heard, microphone access not given, no microphone found, a connection needed, and page language not supported. A failed dictation sends no form and sends no text to the college.
  • Excluded fields: no Dictate button on email, password, number, phone, web address, date, file, choice, or hidden fields, and no Dictate button on a disabled or read-only field.

What is not built and must not be claimed

  • No interim transcript display, no dictation language selector, and no punctuation or capitalization added by page code in this pack. Language comes from the page language at session start, punctuation comes only as returned by the browser speech service, and the person edits the field before sending.
  • No spoken answer playback, no read-aloud button, and no play, pause, or stop control for answers on public pages in this pack
  • No voice navigation, no spoken commands, no wake word, and no action that needs voice, sound, or a gesture
  • No dictation in the signed-in app or the widget embed in this pack, and no dictation that sends a form
  • No audio captions, no audio transcript panel, and no sound on form submit, status check, or alerts in this pack
  • No pause or resume for dictation, and no dictation for a field type listed as excluded above

Checks before you ship a voice change

  • Keyboard only: tab order reaches each Dictate button in field order, Enter and Space start and stop, Escape stops while listening, typing alone can finish the form, and no mouse is needed
  • Screen reader: field label and Dictate button name are read in order, pressed state is heard, Starting, Listening, Added, Stopped, and each error status is announced, and answer text with source title, source link, and last checked date can be read in order without sound
  • Phone: Dictate button target is at least 44 pixels, status text is readable, and field, button, and status stack in one column
  • Unavailable paths: a browser with no speech support, a connection that is not secure, microphone access not given, no microphone found, no speech heard, a connection needed, and page language not supported each show the plain status, show no Dictate button where the code shows none, send no voice, and send no form
  • Multiple fields: one session runs at a time, a second field stops the first, the status on the second field states that, and the Stop control is found by position after the field and by the status naming the field
  • Forms: dictated text appears in the field, is editable, is saved as a draft in this tab, is restored on reload in the same tab, is not sent until submit, and still meets field length limits at submit
  • Escape handling: Escape stops dictation while listening and still works for menus and dialogs on the same page, with no focus loss after stop other than the focus move after a result stated above
  • Any change to a button name, a focus rule, a status wording, a language rule, an interim display, a punctuation rule, or an excluded field type is stated on this page in the same change

Use Request a demo for the demo and question forms, Ask and check sources for checking an answer, Test answers for the test paths, and Build an assistant for the answer rules a builder sets.