@financial-times/n-myft-ui 29.0.5 → 29.0.6
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.
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
,
|
|
75
75
|
{{~/unless~}}
|
|
76
76
|
{{~/concepts~}}"
|
|
77
|
-
aria-label="Add all
|
|
77
|
+
aria-label="Add all to myFT: {{title}} collection"
|
|
78
78
|
data-alternate-label="Remove all topics in the {{title}} collection from my F T"
|
|
79
79
|
data-alternate-text="Added"
|
|
80
80
|
title="Add all topics in the {{title}} collection to my F T">
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
></div>
|
|
27
27
|
<button
|
|
28
28
|
{{#ifAll setFollowButtonStateToSelected @root.cacheablePersonalisedUrl}}
|
|
29
|
-
aria-label="
|
|
29
|
+
aria-label="Added {{name}} to myFT: click to remove"
|
|
30
30
|
title="Remove {{name}} from myFT"
|
|
31
31
|
data-alternate-label="Add {{name}} to myFT"
|
|
32
32
|
aria-pressed="true"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
{{/if}}
|
|
42
42
|
{{else}}
|
|
43
43
|
aria-pressed="false"
|
|
44
|
-
aria-label="Add {{name}}
|
|
44
|
+
aria-label="Add to myFT: {{name}}"
|
|
45
45
|
title="Add {{name}} to myFT"
|
|
46
46
|
data-alternate-label="Remove {{name}} from myFT"
|
|
47
47
|
{{#if alternateText}}
|
package/demos/app.js
CHANGED
|
@@ -42,6 +42,7 @@ app.engine('.html', new PageKitHandlebars({
|
|
|
42
42
|
app.use('/public', nExpress.static(path.join(__dirname, '../public'), { redirect: false }));
|
|
43
43
|
|
|
44
44
|
app.get('/', (req, res) => {
|
|
45
|
+
res.locals.cacheablePersonalisedUrl = true;
|
|
45
46
|
res.render('demo', Object.assign({
|
|
46
47
|
title: 'n-myft-ui demo',
|
|
47
48
|
flags: {
|
|
@@ -26,22 +26,20 @@
|
|
|
26
26
|
class="demo-section">
|
|
27
27
|
<div class="o-grid-row">
|
|
28
28
|
<div data-o-grid-colspan="12">
|
|
29
|
-
<h2
|
|
30
|
-
class="demo-section__title">
|
|
31
|
-
Follow button
|
|
32
|
-
</h2>
|
|
33
|
-
|
|
34
29
|
{{#followButton}}
|
|
30
|
+
<h2
|
|
31
|
+
class="demo-section__title">
|
|
32
|
+
Follow button
|
|
33
|
+
</h2>
|
|
35
34
|
{{> n-myft-ui/components/follow-button/follow-button}}
|
|
36
35
|
{{/followButton}}
|
|
37
36
|
|
|
38
|
-
<h2
|
|
39
|
-
class="demo-section__title">
|
|
40
|
-
x-dash follow button
|
|
41
|
-
</h2>
|
|
42
|
-
|
|
43
37
|
{{#followButton}}
|
|
44
|
-
|
|
38
|
+
<h2
|
|
39
|
+
class="demo-section__title">
|
|
40
|
+
Unfollow button
|
|
41
|
+
</h2>
|
|
42
|
+
{{> n-myft-ui/components/follow-button/follow-button setFollowButtonStateToSelected=true }}
|
|
45
43
|
{{/followButton}}
|
|
46
44
|
|
|
47
45
|
{{#saveButton}}
|
|
@@ -86,7 +84,6 @@
|
|
|
86
84
|
{{> n-myft-ui/components/instant-alert/instant-alert }}
|
|
87
85
|
{{/instantAlert}}
|
|
88
86
|
|
|
89
|
-
|
|
90
87
|
</div>
|
|
91
88
|
</div>
|
|
92
89
|
</section>
|