@financial-times/n-myft-ui 29.0.4 → 29.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -74,7 +74,7 @@
74
74
  ,
75
75
  {{~/unless~}}
76
76
  {{~/concepts~}}"
77
- aria-label="Add all topics in the {{title}} collection to my F T"
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="Remove {{name}} from myFT"
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}} to myFT"
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
- {{> n-myft-ui/components/follow-button/follow-button buttonText=name}}
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>
package/myft/main.scss CHANGED
@@ -24,17 +24,6 @@ $spacing-unit: 20px;
24
24
  display: inline-block;
25
25
  }
26
26
 
27
- // article lists modal
28
- @include oForms($opts: (
29
- 'elements': ('text', 'checkbox', 'toggle')
30
- ));
31
-
32
- @include oButtons($opts: (
33
- 'sizes': ('big'),
34
- 'types': ('primary', 'secondary'),
35
- 'themes': ('inverse')
36
- ));
37
-
38
27
  // experimental flash animation on header icon
39
28
  @include myftHeaderIconFlash;
40
29
 
@@ -205,6 +194,16 @@ $spacing-unit: 20px;
205
194
  }
206
195
 
207
196
  .myft-ui-create-list-variant {
197
+ @include oButtons($opts: (
198
+ 'sizes': ('big'),
199
+ 'types': ('primary', 'secondary'),
200
+ 'themes': ('inverse')
201
+ ));
202
+
203
+ @include oForms($opts: (
204
+ 'elements': ('text', 'checkbox', 'toggle')
205
+ ));
206
+
208
207
  border-radius: 10px;
209
208
  border: 1px solid oColorsByName('black-5');
210
209
  background: oColorsByName('white-80');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-myft-ui",
3
- "version": "29.0.4",
3
+ "version": "29.0.6",
4
4
  "description": "Client side component for interaction with myft",
5
5
  "main": "server.js",
6
6
  "scripts": {