Skip to content

Commit

Permalink
Add check for a11ySkipLink, 9.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Oct 12, 2022
1 parent d5642b2 commit 487b176
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 16 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### [Unreleased]
### 9.2.0: 2022-10-12

* Add check for a11ySkipLink
* Add missing external-link-icon class
* Fix aspect-ratio mixin supports query

Expand Down
2 changes: 1 addition & 1 deletion bin/tasks/additions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ chmod 777 ${PROJECT_PATH}/media

echo "${YELLOW}Generating default README.md...${TXTRESET}"

NEWEST_AIR_VERSION="9.1.9"
NEWEST_AIR_VERSION="9.2.0"
NEWEST_WORDPRESS_VERSION="6.0.2"
NEWEST_PHP_VERSION="7.4"
CURRENT_DATE=$(LC_TIME=en_US date '+%d %b %Y' |tr ' ' '_');
Expand Down
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @Date: 2019-10-15 12:30:02
* @Last Modified by: Roni Laukkarinen
* @Last Modified time: 2022-10-06 22:54:30
* @Last Modified time: 2022-10-12 15:07:26
*
* @package air-light
*/
Expand All @@ -17,7 +17,7 @@
/**
* The current version of the theme.
*/
define( 'AIR_LIGHT_VERSION', '9.1.9' );
define( 'AIR_LIGHT_VERSION', '9.2.0' );

// We need to have some defaults as comments or empties so let's allow this:
// phpcs:disable Squiz.Commenting.InlineComment.SpacingBefore, WordPress.Arrays.ArrayDeclarationSpacing.SpaceInEmptyArray
Expand Down
2 changes: 1 addition & 1 deletion js/dev/front-end.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/prod/front-end.js

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions js/src/modules/a11y-skip-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: Roni Laukkarinen
* @Date: 2022-05-12 17:32:43
* @Last Modified by: Roni Laukkarinen
* @Last Modified time: 2022-09-28 14:34:22
* @Last Modified time: 2022-10-12 15:06:50
*/
import MoveTo from 'moveto';

Expand All @@ -16,11 +16,14 @@ const initA11ySkipLink = () => {
const moveTo = new MoveTo();

// When clicked, move focus to the target element
a11ySkipLink.addEventListener('click', () => {
a11ySkipLinkTarget.setAttribute('tabindex', '-1');
a11ySkipLinkTarget.focus();
moveTo.move(a11ySkipLinkTarget);
});

if (a11ySkipLink) {
a11ySkipLink.addEventListener('click', () => {
a11ySkipLinkTarget.setAttribute('tabindex', '-1');
a11ySkipLinkTarget.focus();
moveTo.move(a11ySkipLinkTarget);
});
}
};

export default initA11ySkipLink;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "air-light",
"version": "9.1.9",
"version": "9.2.0",
"description": "A minimalist WordPress starter theme.",
"author": "Digitoimisto Dude Oy ([email protected])",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Tags: one-column, accessibility-ready, translation-ready

Requires at least: 5.0
Tested up to: 6.0.2
Stable tag: 9.1.9
Stable tag: 9.2.0
License: MIT License
License URI: https://opensource.org/licenses/MIT

Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://github.com/digitoimistodude/air-light
Author: Digitoimisto Dude Oy
Author URI: https://www.dude.fi
Description: Hi. I'm a starter theme called <code>Air-light</code>, or <em>air</em>, if you like. I'm a theme based on Automattic's underscores and I'm meant for hacking so don't use me as a <em>Parent Theme</em> as-is. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
Version: 9.1.9
Version: 9.2.0
------8<----------
Please do this before your actual theme is ready to go live:
Expand All @@ -20,7 +20,7 @@ If you see this, contact the site admin.
/*---------------------------------------------------------------
>>> Air-light theme version information, only for AIR developers
-----------------------------------------------------------------
@version 2022-10-06
@version 2022-10-12
@since 2016-01-28
Tested up to: 6.0.2
Expand Down

0 comments on commit 487b176

Please sign in to comment.