@financial-times/n-myft-ui 40.0.0 → 40.0.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "branch": "",
3
3
  "repo": "n-myft-ui",
4
- "version": "debd61e7393b99f4256d24f68a0819dec3eb176d",
5
- "tag": "v40.0.0"
4
+ "version": "9e66c3e0ad6f6b3a51b8f49477fc73a864ffccc7",
5
+ "tag": "v40.0.1"
6
6
  }
@@ -28,9 +28,9 @@ function toggleButton (buttonEl, state) {
28
28
  nextButtons.toggleState(buttonEl);
29
29
  const name = buttonEl.getAttribute('data-name');
30
30
  if (isPressed) {
31
- buttonEl.setAttribute('aria-label', 'Alerts ' + name + ' currently disabled, change to enable');
31
+ buttonEl.setAttribute('aria-label', 'Instant alerts for ' + name + ' currently disabled, change to enable');
32
32
  } else {
33
- buttonEl.setAttribute('aria-label', 'Alerts ' + name + ' currently enabled, change to disable');
33
+ buttonEl.setAttribute('aria-label', 'Instant alerts for ' + name + ' currently enabled, change to disable');
34
34
  }
35
35
  }
36
36
 
@@ -14,10 +14,10 @@
14
14
  {{/if}}
15
15
  <button
16
16
  {{#ifAll hasInstantAlert @root.cacheablePersonalisedUrl}}
17
- aria-label="Alerts {{name}} currently enabled, change to disable"
17
+ aria-label="Instant alerts for {{name}} currently enabled, change to disable"
18
18
  aria-pressed="true"
19
19
  {{else}}
20
- aria-label="Alerts {{name}} currently disabled, change to enable"
20
+ aria-label="Instant alerts for {{name}} currently disabled, change to enable"
21
21
  aria-pressed="false"
22
22
  {{/ifAll}}
23
23
  class="o3-button n-myft-ui__button--instant"
package/myft/ui/lists.js CHANGED
@@ -318,8 +318,8 @@ function ListsElement (lists, addToList, removeFromList) {
318
318
  const listCheckboxElement = ListCheckboxElement(addToList, removeFromList);
319
319
 
320
320
  const listsTemplate = `
321
- <div class="myft-ui-create-list-lists o-forms-field o-forms-field--optional" role="group">
322
- <span class="myft-ui-create-list-lists-text">Add to list</span>
321
+ <div class="myft-ui-create-list-lists o-forms-field o-forms-field--optional" role="group" aria-labelledby="add-to-list-label">
322
+ <span id="add-to-list-label" class="myft-ui-create-list-lists-text">Add to list</span>
323
323
  <span class="myft-ui-create-list-lists-container o-forms-input o-forms-input--checkbox">
324
324
  </span>
325
325
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-myft-ui",
3
- "version": "40.0.0",
3
+ "version": "40.0.1",
4
4
  "description": "Client side component for interaction with myft",
5
5
  "main": "server.js",
6
6
  "scripts": {