@transferwise/neptune-css 0.0.0-experimental-9cf1b0b → 0.0.0-experimental-8c347e8

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.
@@ -1089,7 +1089,16 @@ a,
1089
1089
  .np-text-display-extra-large,
1090
1090
  .np-text-display-large,
1091
1091
  .np-text-display-medium,
1092
- .np-text-display-small {
1092
+ .np-text-display-small,
1093
+ .display-1--forced,
1094
+ .display-2--forced,
1095
+ .display-3--forced,
1096
+ .display-4--forced,
1097
+ .display-5--forced,
1098
+ .np-text-display-extra-large--forced,
1099
+ .np-text-display-large--forced,
1100
+ .np-text-display-medium--forced,
1101
+ .np-text-display-small--forced {
1093
1102
  font-family: 'Wise Sans', 'Inter', sans-serif;
1094
1103
  font-family: var(--font-family-display);
1095
1104
  font-synthesis: none;
@@ -1135,9 +1144,14 @@ a,
1135
1144
  * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
1136
1145
  * font files are browser-cached and we carried over to launchpad, where it causes issues
1137
1146
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
1147
+ * There are exceptions for small UI parts where Wise Sans is fine or expected — e.g. the
1148
+ * numeric input of ExpressiveMoneyInput.
1149
+ * Add `--forced` BEM modifier to the original class name to guarantee it.
1138
1150
  */
1139
1151
  font-family: 'Inter', Helvetica, Arial, sans-serif;
1140
1152
  font-family: var(--font-family-regular);
1153
+ line-height: 1.2;
1154
+ line-height: var(--line-height-title);
1141
1155
  }
1142
1156
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
1143
1157
  .np-text-display-extra-large,
@@ -3238,7 +3238,16 @@ a,
3238
3238
  .np-text-display-extra-large,
3239
3239
  .np-text-display-large,
3240
3240
  .np-text-display-medium,
3241
- .np-text-display-small {
3241
+ .np-text-display-small,
3242
+ .display-1--forced,
3243
+ .display-2--forced,
3244
+ .display-3--forced,
3245
+ .display-4--forced,
3246
+ .display-5--forced,
3247
+ .np-text-display-extra-large--forced,
3248
+ .np-text-display-large--forced,
3249
+ .np-text-display-medium--forced,
3250
+ .np-text-display-small--forced {
3242
3251
  font-family: 'Wise Sans', 'Inter', sans-serif;
3243
3252
  font-family: var(--font-family-display);
3244
3253
  font-synthesis: none;
@@ -3285,9 +3294,14 @@ a,
3285
3294
  * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
3286
3295
  * font files are browser-cached and we carried over to launchpad, where it causes issues
3287
3296
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3297
+ * There are exceptions for small UI parts where Wise Sans is fine or expected — e.g. the
3298
+ * numeric input of ExpressiveMoneyInput.
3299
+ * Add `--forced` BEM modifier to the original class name to guarantee it.
3288
3300
  */
3289
3301
  font-family: 'Inter', Helvetica, Arial, sans-serif;
3290
3302
  font-family: var(--font-family-regular);
3303
+ line-height: 1.2;
3304
+ line-height: var(--line-height-title);
3291
3305
  }
3292
3306
 
3293
3307
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@transferwise/neptune-css",
3
3
  "description": "Neptune CSS library",
4
- "version": "0.0.0-experimental-9cf1b0b",
4
+ "version": "0.0.0-experimental-8c347e8",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -8,7 +8,17 @@
8
8
 
9
9
  /* DEPRECATED: use .np-text-*-title instead */
10
10
  /* stylelint-disable-next-line selector-list-comma-newline-after */
11
- .h1, .h2, .h3, .h4, .h5, .h6, .title-1, .title-2, .title-3, .title-4, .title-5,
11
+ .h1,
12
+ .h2,
13
+ .h3,
14
+ .h4,
15
+ .h5,
16
+ .h6,
17
+ .title-1,
18
+ .title-2,
19
+ .title-3,
20
+ .title-4,
21
+ .title-5,
12
22
  h1,
13
23
  h2,
14
24
  h3,
@@ -114,8 +124,12 @@ h6,
114
124
 
115
125
  /* DEPRECATED: use .np-text-body-default instead */
116
126
  /* stylelint-disable-next-line selector-list-comma-newline-after */
117
- .body-2, .body-3, .small, .tiny,
118
- body, small,
127
+ .body-2,
128
+ .body-3,
129
+ .small,
130
+ .tiny,
131
+ body,
132
+ small,
119
133
  .np-text-body-default {
120
134
  font-size: var(--font-size-14);
121
135
  line-height: 155%;
@@ -139,7 +153,8 @@ body, small,
139
153
 
140
154
  /* DEPRECATED: use .np-text-body-large instead */
141
155
  /* stylelint-disable-next-line selector-list-comma-newline-after */
142
- .body-1, .value,
156
+ .body-1,
157
+ .value,
143
158
  .np-text-body-large {
144
159
  font-weight: var(--font-weight-regular);
145
160
  font-size: var(--font-size-16);
@@ -204,8 +219,11 @@ a,
204
219
  .np-text-display-large,
205
220
  .np-text-display-medium,
206
221
  .np-text-display-small {
207
- font-family: var(--font-family-display);
208
- font-synthesis: none;
222
+ &,
223
+ &--forced {
224
+ font-family: var(--font-family-display);
225
+ font-synthesis: none;
226
+ }
209
227
 
210
228
  :lang(ja) &,
211
229
  :lang(th) &,
@@ -216,8 +234,12 @@ a,
216
234
  * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
217
235
  * font files are browser-cached and we carried over to launchpad, where it causes issues
218
236
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
237
+ * There are exceptions for small UI parts where Wise Sans is fine or expected — e.g. the
238
+ * numeric input of ExpressiveMoneyInput.
239
+ * Add `--forced` BEM modifier to the original class name to guarantee it.
219
240
  */
220
241
  font-family: var(--font-family-regular);
242
+ line-height: var(--line-height-title);
221
243
  }
222
244
  }
223
245