Skip to content

Commit

Permalink
chore(release): 4.0.0-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDJM committed Jun 29, 2023
1 parent c25652c commit d12687b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [4.0.0-beta.4](https://github.com/NickDJM/accessible-menu/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2023-06-29)


### Bug Fixes

* **accessibility:** set submenu menubar roles to menu ([c25652c](https://github.com/NickDJM/accessible-menu/commit/c25652c331ab48761feaa106a37a7fb9ca27ef61))

## [4.0.0-beta.3](https://github.com/NickDJM/accessible-menu/compare/v4.0.0-beta.2...v4.0.0-beta.3) (2023-06-22)


Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ For learning/prototyping purposes you can use the latest version with:
For production environments, it is recommend to use a specific version to avoid unforseen breaking changes:

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/accessible-menu.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/accessible-menu.min.js"></script>
```

## Upgrading from version 2 to version 3?
Expand Down Expand Up @@ -78,7 +78,7 @@ import AccessibleMenu from "accessible-menu";
or

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/accessible-menu.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/accessible-menu.min.js"></script>
```

Once you have **accessible-menu** loaded, declare a new menu object.
Expand Down Expand Up @@ -107,7 +107,7 @@ import { DisclosureMenu } from "accessible-menu";
or

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/disclosure-menu.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/disclosure-menu.min.js"></script>
```

then
Expand All @@ -128,7 +128,7 @@ import { Menubar } from "accessible-menu";
or

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/menubar.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/menubar.min.js"></script>
```

then
Expand All @@ -149,7 +149,7 @@ import { TopLinkDisclosureMenu } from "accessible-menu";
or

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/top-link-disclosure-menu.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/top-link-disclosure-menu.min.js"></script>
```

then
Expand All @@ -170,7 +170,7 @@ import { Treeview } from "accessible-menu";
or

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].3/dist/treeview.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].4/dist/treeview.min.js"></script>
```

then
Expand Down
2 changes: 1 addition & 1 deletion dist/accessible-menu.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,7 @@ class K extends T {
*/
initialize() {
try {
super.initialize(), this.dom.menu.setAttribute("role", "menubar"), this._handleFocus(), this._handleClick(), this._handleHover(), this._handleKeydown(), this._handleKeyup(), this.isTopLevel && (this.elements.menuItems[0].dom.link.tabIndex = 0);
super.initialize(), this.isTopLevel ? this.dom.menu.setAttribute("role", "menubar") : this.dom.menu.setAttribute("role", "menu"), this._handleFocus(), this._handleClick(), this._handleHover(), this._handleKeydown(), this._handleKeyup(), this.isTopLevel && (this.elements.menuItems[0].dom.link.tabIndex = 0);
} catch (e) {
console.error(e);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/accessible-menu.iife.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/menubar.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ class A extends C {
*/
initialize() {
try {
super.initialize(), this.dom.menu.setAttribute("role", "menubar"), this._handleFocus(), this._handleClick(), this._handleHover(), this._handleKeydown(), this._handleKeyup(), this.isTopLevel && (this.elements.menuItems[0].dom.link.tabIndex = 0);
super.initialize(), this.isTopLevel ? this.dom.menu.setAttribute("role", "menubar") : this.dom.menu.setAttribute("role", "menu"), this._handleFocus(), this._handleClick(), this._handleHover(), this._handleKeydown(), this._handleKeyup(), this.isTopLevel && (this.elements.menuItems[0].dom.link.tabIndex = 0);
} catch (t) {
console.error(t);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/menubar.iife.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "accessible-menu",
"version": "4.0.0-beta.3",
"version": "4.0.0-beta.4",
"description": "A JavaScript library to help you generate WCAG accessible menus in the DOM.",
"main": "index.js",
"files": [
Expand Down

0 comments on commit d12687b

Please sign in to comment.