WordPress.org

Ready to get started?Download WordPress

Forums

Accessibility Matters: please add aria support in the core (1 post)

  1. alsd
    Member
    Posted 3 years ago #

    I see that the Twentyten has added a few aria role.

    It will be very nice (and very important) if we can add "role" attribute directly in the array.

    Take wp nav menu for example, it adds a div to the container, and if no 'container_id' is called, it defaults to whatever menu name is.

    <div id="container-id">
    <ul class="menu">
    <li>xxx</li>
    </ul>
    </div>

    A 'role' attribute can be added to the div to reduce a redundant div :
    <div id="container-id" role="menu">

    Right now there is no way to do it but this:

    <div role="menu">
    <div id="container-id">
    <ul class="menu">
    <li>xxx</li>
    </ul>
    </div>
    </div>

    Not pretty, not nice, ugly, very bad!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.