MAIDR JavaScript API
    Preparing search index...

    Function warnSelectors

    • Tells a producer, once, that a layer's selectors did not do what it meant.

      A layer whose selectors resolve to nothing still announces every point and sounds every value; it only loses the outline a sighted or low-vision reader follows. That is invisible to anyone who only listens, and was invisible to every producer through the 4.x contract changes (#750, #991, #1135), which is how a regression in r-maidr and py-maidr lasted weeks. The console is where a producer's author will look, so the loss is said there.

      A warning rather than an error: the rest of the figure still works, and the layer is still usable without its highlight.

      Parameters

      • layer: Pick<MaidrLayer, "id" | "type">

        The layer the problem is about

      • problem: string

        What went wrong, as a sentence

      Returns void