@financial-times/n-myft-ui 38.0.4 → 38.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "branch": "",
3
3
  "repo": "n-myft-ui",
4
- "version": "2e06941445c220495ee1c6c33990cf542f7ae683",
5
- "tag": "v38.0.4"
4
+ "version": "6fe248ea448f37121e2e6cdb12ac742b10dc1b9b",
5
+ "tag": "v38.0.6"
6
6
  }
@@ -9,21 +9,19 @@
9
9
  .n-myft-ui__save-button-with-icon {
10
10
  --icon-size: 24px;
11
11
 
12
- display: inline-block;
13
- padding: 30px 0px 4px;
12
+ display: inline-flex;
13
+ padding: 10px 0px 4px;
14
14
  width: 40px;
15
15
  color: var(--o3-color-palette-black);
16
16
  background: none;
17
17
  border: 0;
18
- position: relative;
18
+ flex-direction: column;
19
+ align-items: center;
19
20
 
20
- &::after {
21
+ &::before {
21
22
  content: '';
22
23
  width: var(--icon-size);
23
24
  height: var(--icon-size);
24
- top: var(--o3-spacing-5xs);
25
- left: var(--o3-spacing-4xs);
26
- position: absolute;
27
25
  background-color: var(--o3-color-palette-black);
28
26
  mask-image: var(--o3-icon-bookmark);
29
27
  mask-repeat: no-repeat;
@@ -39,7 +37,7 @@
39
37
  }
40
38
 
41
39
  &:not([disabled]):hover {
42
- &::after {
40
+ &::before {
43
41
  mask-image: var(--o3-icon-bookmark-filled);
44
42
  background-color: var(--o3-color-palette-black-50);
45
43
  }
@@ -47,7 +45,7 @@
47
45
 
48
46
  &[aria-selected='true'],
49
47
  &[aria-pressed='true'] {
50
- &::after {
48
+ &::before {
51
49
  mask-image: var(--o3-icon-bookmark-filled);
52
50
  background-color: var(--o3-color-palette-claret);
53
51
  }
@@ -3,7 +3,7 @@
3
3
  class="concept-list"
4
4
  data-trackable="{{#if trackable}}{{trackable}}{{else}}concept-list{{/if}}">
5
5
  {{#ifSome contentType conceptListTitle}}
6
- <h2 class="concept-list__title">
6
+ <h2 class="concept-list__title o3-type-body-highlight">
7
7
  {{#if conceptListTitle}}
8
8
  {{conceptListTitle}}
9
9
  {{else}}
@@ -1,7 +1,4 @@
1
1
  .concept-list__title {
2
- line-height: var(--o3-font-lineheight-metric2-0);
3
- font-size: var(--o3-font-size-metric2-0);
4
- font-family: var(--o3-font-family-metric);
5
2
  word-break: break-all;
6
3
  &:after {
7
4
  content: '';
@@ -86,8 +86,9 @@ function formSubmitted (event, element) {
86
86
  const subjectId = element.getAttribute('data-concept-id');
87
87
  const submitEl = element.querySelector('button');
88
88
  const inputs = element.querySelectorAll('input');
89
- inputs.push(submitEl);
90
- updateConceptData(subjectId, extractMetaData(inputs));
89
+ const inputsArray = Array.from(inputs);
90
+ inputsArray.push(submitEl);
91
+ updateConceptData(subjectId, extractMetaData(inputsArray));
91
92
  }
92
93
  }
93
94
 
package/myft/ui/lists.js CHANGED
@@ -19,7 +19,7 @@ async function openSaveArticleToList (contentId, options = {}) {
19
19
  return restoreContent();
20
20
  }
21
21
 
22
- myFtClient.add('user', null, 'created', 'list', crypto.randomUUID(), { name: newList.name, token: csrfToken, isPublic: newList.isPublic })
22
+ myFtClient.add('user', null, 'created', 'list', { name: newList.name, token: csrfToken, isPublic: newList.isPublic })
23
23
  .then(detail => {
24
24
  const listId = detail.results[0].subject.properties.uuid;
25
25
  myFtClient.add('list', listId, 'contained', 'content', contentId, { token: csrfToken }).then((data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-myft-ui",
3
- "version": "38.0.4",
3
+ "version": "38.0.6",
4
4
  "description": "Client side component for interaction with myft",
5
5
  "main": "server.js",
6
6
  "scripts": {