WordPress.org

Forums

Collapse-O-Matic
[resolved] Keyboard support (3 posts)

  1. davidbermancom
    Member
    Posted 11 months ago #

    How can we cause the expanding element to be keyboard accessible? It does not have a tabindex and it does now activate with the keyboard. This causes a serious accessibility failure for users who cannot use a mouse. Can this be addressed?

    https://wordpress.org/plugins/jquery-collapse-o-matic/

  2. Baden
    Member
    Plugin Author

    Posted 9 months ago #

    We'll look into adding this feature in our next release. Thank you for the feedback.

  3. Baden
    Member
    Plugin Author

    Posted 8 months ago #

    After a bit of noodleing, here are some thoughts on this:
    1. Since the content is actually being hidden by javascript screen-readers will still be able to read the content.
    2. Navigation can still be handled by placing a standard anchor before the collapse elements, for example:

    <a name="#monkey" tabindex="7" title="All about monkeys" alt="All about monkeys" class="screen-reader-text">All About Monkeys</a>
    [expand id="monkey" title="All About Monkeys"]...[/expand]

    The only area that still remains is how best to activate the expand via keyboard.

    But we do have this feature in that the id of the expand can be used as an anchor in the url to auto-expand that section. Please view the documentation regarding the ID attribute for an example.

    In our view, this fills all aspects of accessibility. Happy to hear your thoughts on this. If you would like to continue the discussion, you can create a feature request at: http://ideas.twinpictures.de

    This issue is marked as resolved.

Reply

You must log in to post.

About this Plugin

  • Collapse-O-Matic
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic