@1024pix/pix-ui 55.11.0 → 55.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,11 +9,13 @@
9
9
  @iconBefore={{if this.navigationMenuOpened "close" "menu"}}
10
10
  @triggerAction={{this.toggleNavigationMenu}}
11
11
  >
12
- {{#if this.navigationMenuOpened}}
13
- {{@closeLabel}}
14
- {{else}}
15
- {{@openLabel}}
16
- {{/if}}
12
+ <span class="screen-reader-only">
13
+ {{#if this.navigationMenuOpened}}
14
+ {{@closeLabel}}
15
+ {{else}}
16
+ {{@openLabel}}
17
+ {{/if}}
18
+ </span>
17
19
  </PixButton>
18
20
  </div>
19
21
  </header>
@@ -1,3 +1,4 @@
1
+ import { warn } from '@ember/debug';
1
2
  import { action } from '@ember/object';
2
3
  import { guidFor } from '@ember/object/internals';
3
4
  import Component from '@glimmer/component';
@@ -7,6 +8,13 @@ export default class PixMNavigation extends Component {
7
8
  constructor(...args) {
8
9
  super(...args);
9
10
  this._navigationId = 'navigation-' + guidFor(this);
11
+ warn(
12
+ 'PixNavigation: @openLabel and @closeLabel are required',
13
+ this.args.openLabel && this.args.closeLabel,
14
+ {
15
+ id: 'pix-navigation.open-close-labels',
16
+ },
17
+ );
10
18
  }
11
19
 
12
20
  @tracked
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "55.11.0",
3
+ "version": "55.11.1",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"