• Resolved Frank

    (@bandy1967)


    Hello, even after the latest update there is a problem with accessibility. Here is the solution on how to solve it:

    Open easy-table-of-contents.php

    Search for 1968: class=”ez-toc-sticky

    INSERT BEFORE: id=”content-table” aria-label=”content-table” role=”navigation”

    Search for 1972: class=’ez-toc-open-icon’

    INSERT BEFORE: role=’button’

    This fixes everything. Great plugin what you have provided here.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Thank you for reaching out to us. Could you please share more details about the issue, such as where you’re facing it? any screenshot of the issue would be helpful for us to investigate further.

    Thread Starter Frank

    (@bandy1967)

    Hi,

    the problem is indicated by the accessibility checker of https://www.accessibilitychecker.org/.

    Plugin Support Akshay A

    (@akshaycode1)

    Hi,

    Thank you for sharing this.

    We have raised a GitHub ticket regarding this concern and it will be addressed in an upcoming update. We kindly request your patience in the meantime.

    I can confirm this issue (incorrect use of link on the TOC open/close toggle), as reported by the Accessibility Checker plugin.

    An Improper Use of Link error appears if you have links that are missing an href attribute or are only linked to a #, and do not have role="button" on them. Links should be used to direct people to other parts of your site. Any other functionality that triggers an action should be a button. To resolve this error you need to recode the link to use a <button> tag (preferable) or add role="button" to the existing <a> tag. If the element is a toggle button (such as an accordion), additional ARIA attributes are required.

    Thread Starter Frank

    (@bandy1967)

    Thanks for the update. It’s a shame that this small change hasn’t been made yet. Now I have to manually adjust it on all pages again. It would be nice if this were fixed in the next update. It doesn’t really take that long.

    Plugin Support Akshay A

    (@akshaycode1)

    Hi, we apologize for the delay. We are working on it and it will be fixed in our next update.

    Thread Starter Frank

    (@bandy1967)

    Since the problem has not yet been resolved, the line numbers have changed as a result of previous updates. Therefore, the correct line numbers and corresponding adjustments are listed below.

    Open easy-table-of-contents.php

    Search for line 2029: class=”ez-toc-sticky

    INSERT BEFORE: id=”content-table” aria-label=”content-table” role=”navigation”

    Search for line 2033: class=’ez-toc-open-icon’

    INSERT BEFORE: role=’button’

    Plugin Support Akshay A

    (@akshaycode1)

    Hi, the fix will be included in the next update for sure.

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

You must be logged in to reply to this topic.