Wagtail client-side components
    Preparing search index...

    Function registerCustomCheck

    • Registers a custom check to be used by Axe.

      Parameters

      • id: string

        The ID of the check

      • evaluate:
            | string
            | (
                (
                    this: CheckHelper,
                    node: Element,
                    options: unknown,
                    virtualNode: VirtualNode,
                ) => boolean | void | undefined
            )
            | undefined

        The evaluation function for the check

      Returns {
          "check-image-alt-text": (
              node: HTMLImageElement,
              options: { pattern: string },
          ) => boolean;
      }

      • check-image-alt-text: (node: HTMLImageElement, options: { pattern: string }) => boolean