Skip to main content

Response Indicator

A response indicator lets the user know if their answer selection is correct or incorrect.

Anatomy

A response indicator includes:

  1. Visible Text Label: This is a label that must clearly and accurately communicate to the user whether their answer is "correct" or "incorrect." It is important that the label uses either the word "correct" or "incorrect" to ensure that the user understands the outcome of their action.
  2. Icon (optional): The visible text label may be accompanied by an icon as an additional visual support. A green checkmark is used to indicate a correct answer, and a red X is used to indicate an incorrect answer.

States and properties

  1. Color: The label or icon is displayed in green to indicate a correct answer and red to indicate an incorrect answer. This color scheme helps users quickly identify whether their response was correct or incorrect.
  2. Correct: When the user selects a correct answer, the visible text label “correct” is shown with a green container.
  3. Incorrect: When the user selects an incorrect answer, the visible text label “incorrect” is shown with a red container.

Usage

A response indicator is used to communicate to a user if their answer selection is correct or incorrect. Examples where a response indicator may be used include:

  1. Multiple choice questions where only one answer is correct
  2. True/false questions where only one answer is correct
  3. Multiselect questions where more than one answer may be correct

Accessibility Notes

This section expands on the design decisions and considerations made to ensure an inclusive and accessible experience for all users.

Visible Labels

Clear, visible labels support students with disabilities in the following ways:

  1. Clarity: Text labels are typically clearer and more specific than icons, which can be ambiguous or difficult to interpret. Users with learning disabilities may have difficulty recognizing or understanding abstract symbols or icons, whereas text labels provide a clear and straightforward message.
  2. Consistency: Text labels provide consistency across various parts of the interface, which can be particularly helpful for users with learning disabilities who may rely on familiar patterns and structures to navigate and understand information.
  3. Discoverability: Text labels are more discoverable for users with low vision who may rely on screen magnification to access information and complete tasks. Icons may be easily missed, whereas visible text labels are more prominent and easier to read at higher magnification levels.
  4. Language-based: Users with learning disabilities often benefit from language-based information, which can help them make connections and understand relationships between concepts more easily. Text labels provide this type of information in a way that is more accessible and easier to understand.

Problems with using icons alone

Relying solely on icons to communicate if an answer is correct or incorrect can present challenges for users with disabilities for the following reasons:

  • Easily missed by users utilizing screen magnification: Icons alone may be too subtle of a change when content is magnified. This can make it difficult for users relying on screen magnification to perceive and interpret the feedback, potentially leading to confusion or incomplete understanding.
  • Limited perceptual cues in complex interfaces: Icons alone, especially in interfaces with a lot of visual elements or complexity, may not be prominent enough for users with visual impairments or cognitive disabilities. These users often require distinct cues to effectively grasp and comprehend the feedback provided.

React API

import { ResponseIndicator } from '@wwnds/react';
Live Editor
<ResponseIndicator
	variant="correct"
	withIcon
/>
Result
Loading...
NameDescriptionType
id
string
withIcon
If this indicator should have an iconboolean
placementIcon

The placement of the icon.

Values: 'top' | 'bottom' | 'left' | 'right'

BasePlacement
variant

The variant of the indicator.

Values: 'correct' | 'incorrect'

ResponseIndicatorVariant
label

The label of the indicator. Setting this will override the default label

string