bootstrap-genesis icon indicating copy to clipboard operation
bootstrap-genesis copied to clipboard

Add Genesis accessibility features

Open salcode opened this issue 9 years ago • 2 comments
trafficstars

See http://genesis-accessible.org/2015/07/genesis-2-2-accessibility-changes-and-features/

Ultimately, this is the code we want to add to lib/genesis-setup.php

add_theme_support(
    'genesis-accessibility', 
    array(
        'headings',
        'drop-down-menu',
        'search-form',
        'skip-links',
        'rems'
    ) 
);

though currently some of these features conflict with our existing styles or markup.

salcode avatar Apr 06 '16 15:04 salcode

Since we're using Bootstrap Nav (rather than Genesis built-in nav) we don't need drop-down-menu.

salcode avatar Apr 08 '16 20:04 salcode

Since we're using Bootstrap Nav (rather than Genesis built-in nav) we don't need drop-down-menu.

the bs navwalker uses aria-haspopup accessibility features already so I'm pretty sure we could just edit it here with this this if we want to support the drop-down-menu feature:

if ( genesis_a11y( 'drop-down-menu' ) ) {
    $atts['aria-haspopup']  = 'true';
} 

also, not sure we can support rems until bs4 and 404 is also one of the features available

bryanwillis avatar Apr 16 '16 08:04 bryanwillis