@financial-times/n-myft-ui 39.0.4 → 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.
package/.toolkitstate/ci.json
CHANGED
@@ -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', '
|
31
|
+
buttonEl.setAttribute('aria-label', 'Instant alerts for ' + name + ' currently disabled, change to enable');
|
32
32
|
} else {
|
33
|
-
buttonEl.setAttribute('aria-label', '
|
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="
|
17
|
+
aria-label="Instant alerts for {{name}} currently enabled, change to disable"
|
18
18
|
aria-pressed="true"
|
19
19
|
{{else}}
|
20
|
-
aria-label="
|
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": "
|
3
|
+
"version": "40.0.1",
|
4
4
|
"description": "Client side component for interaction with myft",
|
5
5
|
"main": "server.js",
|
6
6
|
"scripts": {
|
@@ -113,7 +113,7 @@
|
|
113
113
|
"@financial-times/o3-button": "^3.0.0",
|
114
114
|
"@financial-times/o3-editorial-typography": "^3.0.2",
|
115
115
|
"@financial-times/o3-foundation": "^3.0.0",
|
116
|
-
"next-myft-client": "^
|
116
|
+
"next-myft-client": "^15.0.0",
|
117
117
|
"react": "17.x || 18.x"
|
118
118
|
},
|
119
119
|
"dependencies": {
|