Skip to content

Commit

Permalink
Merge pull request #17 from campuspress/update/plugin
Browse files Browse the repository at this point in the history
Add aria-labels and adjust styling
  • Loading branch information
alexstine authored Jun 14, 2018
2 parents 73efdf5 + c92a6a2 commit be5a0d3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion divi-accessibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: Divi Accessibility
* Plugin URI: https://wordpress.org/plugins/accessible-divi/
* Description: Improve Divi accessibility in accordance with WCAG 2.0 guidelines.
* Version: 1.2.0
* Version: 1.2.1
* Author: CampusPress
* Author URI: https://campuspress.com
* License: GPL-2.0+
Expand Down
2 changes: 1 addition & 1 deletion includes/class-divi-accessibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function __construct() {

$this->da11y = 'divi_accessibility';
$this->da11y_options = 'divi_accessibility_options';
$this->version = '1.2.0';
$this->version = '1.2.1';

$this->load_dependencies();
$this->load_settings();
Expand Down
2 changes: 1 addition & 1 deletion public/partials/divi-accessibility-embedded-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}

?>
outline: <?php echo $outline_color; ?> auto 5px;
outline: <?php echo $outline_color; ?> solid 2px;
-webkit-transition: none !important;
transition: none !important;
}
Expand Down
10 changes: 10 additions & 0 deletions public/partials/divi-accessibility-embedded-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,16 @@ function skipTo(target) {
$('.sub-menu').each(function () {
$(this).attr('role', 'menu');
});

/**
* Add aria-label="x".
*
* @divi-module Fullwidth header, comment-wrap
*/
$('.et_pb_fullwidth_header').each(function (e) {
$(this).attr('aria-label', 'Wide Header' + e);
});
$('#comment-wrap').attr('aria-label', 'Comments');
});
})(jQuery);
</script>
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=== Divi Accessibility ===
Contributors: campuspress, JoeFusco, alexstine, burtrw
Contributors: campuspress, JoeFusco, alexstine
Tags: divi, accessibility, accessible, navigation, wcag, a11y, section508, focus, labels, aria
Requires at least: 3.5.0
Tested up to: 5.0
Expand Down Expand Up @@ -52,6 +52,10 @@ Plugin created by [CampusPress](https://campuspress.com). Plugin icon based off

== Changelog ==

= 1.2.1 =
* Add better aria attribute support to navigation menus, comment forms, etc.
* CSS fixes.

= 1.2 =
* Add option to remove id attribute from list items in navigation menus

Expand Down

0 comments on commit be5a0d3

Please sign in to comment.