Posted by richardgoodrow on July 11, 2012 at 3:15pm
In our page.tpl.php theme override, there exists the following line.
<!-- footer row: width = grid_width -->
<?php print theme('grid_row', $footer . $footer_message, 'footer', 'full-width', $grid_width); ?>In order to correctly insert Aira Landmarks, am I correct in assuming the following:
<!-- footer row: width = grid_width -->
<span role="contentinfo">
<?php print theme('grid_row', $footer . $footer_message, 'footer', 'full-width', $grid_width); ?>
</span>
Comments
Block ARIA Landmark Roles module
If you're using Drupal 7, then I've written a module that allows for you to add ARIA landmark roles to blocks via the block configuration form. The module is at http://drupal.org/project/block_aria_landmark_roles.
Drupal Developer at Nomensa, and part-time freelancer.
Drupal 6
I'm also planning on releasing a Drupal 6 version within the next few days.
Drupal Developer at Nomensa, and part-time freelancer.
We'd be happy to test it out
I'd be more than happy to test out and perhaps even contibute code to the D6 version if you're looking for a collaborator.
Great
I've just released a Drupal 6 version, but I'm always happy for contributions going forward. :)
Drupal Developer at Nomensa, and part-time freelancer.
The Drupal 6 version is now
The Drupal 6 version is now available.
Drupal Developer at Nomensa, and part-time freelancer.
Any chance this module could
Any chance this module could add Aria Landmarks to Drupal 7 regions?
No, it wouldn't as it
No, it wouldn't as it utilises the hook_preprocess_block() function. You could either enter the ARIA roles directly into the page.tpl.php file, or I could write another module that allows for you to dynamically enter ARIA roles for each region within the enabled themes. If anyone is interested in sponsoring the development of this module, please get in touch with me. :)
Drupal Developer at Nomensa, and part-time freelancer.
Contributed modules to help with accessibility
Sounds like a good one to add here:
http://drupal.org/node/394252
--
OpenConcept | Twitter @mgifford
Link added
I just added a link to the Aria module and this page. http://drupal.org/node/394252
Great, thanks! :)
Great, thanks! :)
Drupal Developer at Nomensa, and part-time freelancer.
D8 as well?
Wasn't there also an issue open for getting this functionality into core for D8?
I can't find the issue in the issue queue, so did it already get finished and committed or am I incorrect?
www.pixotech.com
html5 initiative
I believe that the html5 initiative is attempting to refactor tpls w/ ARIA roles in mind. I believe that the default roles for blocks in core did get committed to D8
Accessibility Consultant & Web Developer - Zufelt.ca
@ezufelt on Twitter | LinkedIn profile
Add WAI-ARIA roles to Core
Add WAI-ARIA roles to Core blocks is in Core
http://drupal.org/node/1183042
Other related links:
http://drupal.org/node/1430892
http://drupal.org/node/1402250
http://drupal.org/node/1179668
--
OpenConcept | Twitter @mgifford
Thanks to all the responses
I must commend the module by opdavies that puts a new field into blocks which becomes the Aria Landmark role (http://drupal.org/project/block_aria_landmark_roles.). Good job.
I ended up editing overriding our theme's page.tpl.php file. We're using Drupal Commons and not much content is tied to blocks.
At a meetup someone mentioned that I could, for example, use a xpath like query selector on
$vars['content']in a hook_proprocess_html function to find instances ofclass="content_main"and appendrole="main". In that way, we could ensure landmark roles no matter the selected template.Thoughts?
Issues Need to get Marked RTBC
There are a few ARIA related issues - http://drupal.org/project/issues/search/drupal?issue_tags=aria - that are sitting to be marked RTBC. I can't do them as for the most part I wrote the patches.
--
OpenConcept | Twitter @mgifford