• Resolved Earthman Media

    (@earthman100)


    Pro Version user here – love the plugin…however…

    Site Improve is warning us about auto-generated aria-label attributes on the chart div…

    Description

    An ARIA attribute has been specified that is either not supported or is prohibited, on this type of element.

    Explanation:

    The div element does not inherently support aria-label unless a role is specified that allows it. Adding role="region" to the div makes the aria-label attribute valid and improves accessibility by providing a meaningful label for the hidden content.Best practices:

    When using aria-label on a div, ensure that the div has a role that supports this attribute, such as region, alert, or application. This practice helps screen readers correctly interpret and announce the content.

    Example code:

    <div aria-label="A chart." style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;">
    <svg width="603" height="400" aria-label="A chart." style="overflow: hidden;"> </svg>
    <div aria-label="A tabular representation of the data in the chart." style="position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;">
    <table> </table>
    </div>
    </div>

    Should be:

    <div (NO ARIA LABEL or role="figure") style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%;">
    <svg width="603" height="400" role="img" aria-label="A chart." style="overflow: hidden;"> </svg>
    <div role="region" aria-label="A tabular representation of the data in the chart." style="position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;">
    <table>
    <thead> </thead>
    <tbody> </tbody>
    </table>
    </div>
    </div>

    Can you please help us improve our score by making these fully WIA-ARIA compatible?

    https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label

    Note: While aria-label can be used on any element that can have an accessible name, in practice however, it is supported only on interactive elements, widgets, landmarks, images, and iframes.

    https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles

    Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jasmine

    (@hyenokian)

    Dear @earthman100,

    Thank you for your topic.

    As you are referring to the Pro Version of the plugin, please contact us via this form for premium support.

    Our customer care specialists will always be happy to help you.
    Commercial products are not supported in these forums.

    Thank you.

    Thread Starter Earthman Media

    (@earthman100)

    My mistake and apologies, We are using the free version.

    And the issue still applies…

    Plugin Support Jasmine

    (@hyenokian)

    Dear @earthman100,

    Thank you for your reply.

    Our developers have already identified this issue and it will be fixed in an upcoming update.
    In the meantime, please get in touch with us via email so we can provide you with a temporary fixed zip file.

    We appreciate your patience and we are here to help.

    If you have any more questions, please feel free to open a new ticket.

    Thanks!

    Plugin Support Jasmine

    (@hyenokian)

    Dear @earthman100 ,

    I am reaching out to let you know that the issue you previously reported for the Chartify plugin has been fixed in the new Chartify Free 3.6.4 version.

    Please kindly update the plugin and check again.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Aria Label unsupported without role’ is closed to new replies.