Initialization Option Items API

feature

This option controls whether the screen reader headings are displayed, or not. You can also customize the level of the headings.

Values

Request object key config.configuration.accessibility.headings.feature

This option can be initialized as one of the following types: boolean object.

  • Type boolean

    A boolean value indicating whether screen reader-only Feature headings should be rendered.

    If this value omitted, or set to true, then the first Widget in an Item will be preceded by a <h3> heading by default if it is a Feature. This heading will be the initial focused element when the learner navigates to a screen reader Item.

    If this value is set to false, then the screen reader-only Feature headings will not be rendered; and as such, the Item wrapper will be the initial focused element when the learner navigates to a screen reader Item.

    Note This works as long as there isn't also a Question with accessibility headings enabled as the first Widget in an Item.

    This Item wrapper will have a customizable aria-label keyed by aria.item in the internationalization label bundle.

  • Type object
    Options for customizing the screen reader-only Feature accessibility headings.
    • level number
      A number between 1 and 6, indicating the section level of the screen reader-only Feature accessibility heading elements. This will override the default <h3> heading elements.

Versioning

Version added: v2023.3.LTS

Was this article helpful?