Accessible Helper Module for Drupal 7

Events happening in the community are now at Drupal community events on www.drupal.org.
johnbarclay's picture

I dusted off the Drupal 7 version of the Accessible Helper module. Its been ages so I needed to get it working against Drupal 7.0.

Here is the release url: http://drupal.org/node/1094010
And the project is at: http://drupal.org/project/accessible

Accessible_Help Module

Basically shows authoring help in various contexts from Katz previous patch. This could be expanded and adjusted to drupal 7 urls. The mapping is in accessible_api/accessible_api.data.inc in the $accessibility_data['contexts'] and $accessibility_data['tips'] arrays. The first array defines contexts such as "audio and video" and which types of tips belong there. The second array is just the tips themselves.
The contextual menus (the little gearbox icons) have some potential in drupal 7. We could add offsite links are links to accessibility testing urls in these pulldowns. The contextual menus are really easy to alter.

Accessible_Fix Module

Has a folder module_fixes and another theme_overrides. These are fixes for core and contrib modules and themes. I took Mike's suggestions at: http://drupal.org/node/945134 and started to break them into separate issues in Accessible Helper. I only actually implemented one http://drupal.org/node/1091634, but it serves as an example of how I hope the module will work.

For a given core or contributed module, 3 basic files should exist. In the example below the module is the "filter" module in core.

  • accessible_fix/module_fixes/filter.admin.inc -- contains admin/configuration information for the fix and shows up at admin/config/regional/access/accessible_fix
  • accessible_fix/module_fixes/filter.inc -- code that needs to be loaded everytime drupal executes
  • accessible_fix/module_fixes/filter.notes.inc -- notes on the issues and fixes which show up at admin/config/regional/access/accessible_fix/notes

Comments

Nice work

mgifford's picture

Hey John,

Thanks for putting out an alpha. I just tested it on my own site (HTML5 & D7) - http://openconcept.ca/services

I was just looking to add aria roles to the blocks in the sidebar.

It worked great for that.

I really like the list you've got going here - http://drupal.org/project/issues/accessible?categories=All

Such a great way to think about testing, improving & implementing best practices in D7 before we get to D8.

So if we wanted to address say address dates here - http://groups.drupal.org/node/19118

we could over ride core here?

yes. dates can be overridden in a number of ways

johnbarclay's picture
  • in core the date field in the form api can be overridden in the theming layer
  • same thing with the cck date field in contrib

Modules have more theming power in D7 so it can be done without fighting with custom themes.

Cool

mgifford's picture

What about overriding the js as per http://drupal.org/node/331893#comment-2066370

Not sure how easy it is to swap out core javascript files.

Accessibility

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: