nhsuk-tools-chart-components-react 2.1.0 → 2.2.0-beta.0

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.
Files changed (29) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/bundle.css +242 -242
  3. package/dist/cjs/index.js +1 -1
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/esm/bundle.css +279 -279
  6. package/dist/esm/components/bar-slider/bar-slider-chart-axis.js +1 -1
  7. package/dist/esm/components/bar-slider/bar-slider-chart-axis.js.map +1 -1
  8. package/dist/esm/components/bar-slider/bar-slider-chart-regions.js +1 -1
  9. package/dist/esm/components/bar-slider/bar-slider-chart-regions.js.map +1 -1
  10. package/dist/esm/components/bar-slider/bar-slider-figure-chart.js +1 -1
  11. package/dist/esm/components/bar-slider/bar-slider-figure-chart.js.map +1 -1
  12. package/dist/esm/components/blood-pressure/bp-chart.js +1 -1
  13. package/dist/esm/components/blood-pressure/bp-chart.js.map +1 -1
  14. package/dist/esm/components/blood-pressure/bp-figure-chart.js +1 -1
  15. package/dist/esm/components/blood-pressure/bp-figure-chart.js.map +1 -1
  16. package/dist/esm/components/bmi/bmi-figure-chart.js +1 -1
  17. package/dist/esm/components/bmi/bmi-figure-chart.js.map +1 -1
  18. package/dist/esm/components/chart-legend.js +1 -1
  19. package/dist/esm/components/chart-legend.js.map +1 -1
  20. package/dist/esm/components/child-bmi/cbmi-chart-marker.js +1 -1
  21. package/dist/esm/components/child-bmi/cbmi-chart-marker.js.map +1 -1
  22. package/dist/esm/components/child-bmi/cbmi-figure-chart.js +1 -1
  23. package/dist/esm/components/child-bmi/cbmi-figure-chart.js.map +1 -1
  24. package/dist/esm/models/bar-slider-chart.model.js +1 -1
  25. package/dist/esm/models/bar-slider-chart.model.js.map +1 -1
  26. package/dist/esm/utils/bar-slider.utils.js +1 -1
  27. package/dist/esm/utils/bar-slider.utils.js.map +1 -1
  28. package/dist/index.d.ts +2 -1
  29. package/package.json +8 -5
package/README.md CHANGED
@@ -56,7 +56,7 @@ A `storybook` instance for the components can be found in `https://red-water-0aa
56
56
 
57
57
  ## Installation
58
58
 
59
- Ensure you have Node.js 20.x.x. installed. Usage of NVM is recommended, to allow for easily switching between versions on different projects.
59
+ Ensure you have Node.js 204x.x. installed. Usage of NVM is recommended, to allow for easily switching between versions on different projects.
60
60
 
61
61
  `npm install` will install dependencies.
62
62
 
@@ -16,6 +16,20 @@
16
16
  }
17
17
 
18
18
 
19
+ .nhsuk-bar-slider-graph {
20
+ position: relative;
21
+ outline: 1px solid black;
22
+ margin-top: 20px;
23
+ display: flex;
24
+ height: 28px;
25
+ }
26
+ @media (min-width: 320px) and (max-width: 641px) {
27
+ .nhsuk-bar-slider-graph {
28
+ height: 24px;
29
+ }
30
+ }
31
+
32
+
19
33
  .nhsuk-bar-slider-arrow-marker {
20
34
  position: absolute;
21
35
  height: 16px;
@@ -87,19 +101,36 @@
87
101
  }
88
102
 
89
103
 
90
- .nhsuk-bar-slider-graph {
91
- position: relative;
92
- outline: 1px solid black;
93
- margin-top: 20px;
94
- display: flex;
95
- height: 28px;
104
+ .nhsuk-bmi-chart-marker {
105
+ position: absolute;
106
+ z-index: 4;
107
+ height: 24px;
108
+ width: 24px;
109
+ margin: 2px 0 -12px -12px;
96
110
  }
97
111
  @media (min-width: 320px) and (max-width: 641px) {
98
- .nhsuk-bar-slider-graph {
99
- height: 24px;
112
+ .nhsuk-bmi-chart-marker {
113
+ height: 20px;
114
+ width: 20px;
115
+ margin: 2px 0 -10px -10px;
100
116
  }
101
117
  }
102
118
 
119
+ .nhsuk-bmi-axis-marker {
120
+ position: absolute;
121
+ outline: 0.5px solid black;
122
+ height: 5px;
123
+ bottom: -5px;
124
+ }
125
+
126
+ .nhsuk-bmi-axis-marker-label {
127
+ position: absolute;
128
+ bottom: -25px;
129
+ left: -10px;
130
+ width: 20px;
131
+ text-align: center;
132
+ }
133
+
103
134
 
104
135
  .nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
105
136
  background: #330072;
@@ -117,75 +148,120 @@
117
148
  background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
118
149
  }
119
150
 
120
- .nhsuk-bmi-graph {
121
- position: relative;
151
+ .nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
152
+ position: absolute;
153
+ bottom: 0%;
122
154
  outline: 1px solid black;
123
- display: flex;
155
+ border-right: 1px solid black;
156
+ box-shadow: -1px 0px white inset, 2px 0px white, 0px -2px white;
124
157
  height: 28px;
125
- margin-bottom: nhsuk-spacing(4);
126
158
  }
127
159
  @media (min-width: 320px) and (max-width: 641px) {
128
- .nhsuk-bmi-graph {
160
+ .nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
129
161
  height: 24px;
130
162
  }
131
163
  }
132
164
 
165
+ .nhsuk-bmi-classification-underweight {
166
+ z-index: 3;
167
+ }
168
+
169
+ .nhsuk-bmi-classification-healthy {
170
+ z-index: 2;
171
+ }
133
172
 
134
- .nhsuk-bmi-chart-marker {
135
- position: absolute;
136
- z-index: 4;
137
- height: 24px;
138
- width: 24px;
139
- margin: 2px 0 -12px -12px;
173
+ .nhsuk-bmi-classification-overweight {
174
+ z-index: 1;
140
175
  }
141
- @media (min-width: 320px) and (max-width: 641px) {
142
- .nhsuk-bmi-chart-marker {
143
- height: 20px;
144
- width: 20px;
145
- margin: 2px 0 -10px -10px;
146
- }
176
+
177
+ .nhsuk-bmi-classification-obese {
178
+ border-right: none;
179
+ box-shadow: none;
147
180
  }
148
181
 
149
- .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
182
+
183
+ .nhsuk-bmi-legend-key-classification-underweight, .nhsuk-bmi-classification-underweight {
150
184
  background: #330072;
151
185
  }
152
186
 
153
- .nhsuk-bp-classification-healthy, .nhsuk-bp-legend-key-classification-healthy {
154
- background: repeating-linear-gradient(-45deg, #59c3bc, #59c3bc 4.5px, #33b6ad 4.5px, #33b6ad 9px);
187
+ .nhsuk-bmi-legend-key-classification-healthy, .nhsuk-bmi-classification-healthy {
188
+ background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
155
189
  }
156
190
 
157
- .nhsuk-bp-classification-slightlyraised, .nhsuk-bp-legend-key-classification-slightlyraised {
191
+ .nhsuk-bmi-legend-key-classification-overweight, .nhsuk-bmi-classification-overweight {
158
192
  background: #ffb81c;
159
193
  }
160
194
 
161
- .nhsuk-bp-classification-high, .nhsuk-bp-legend-key-classification-high {
162
- background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
195
+ .nhsuk-bmi-legend-key-classification-obese, .nhsuk-bmi-classification-obese {
196
+ background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
163
197
  }
164
198
 
165
- #nhsuk-bp-chart > figure {
166
- margin: 0;
199
+ .nhsuk-bmi-graph {
200
+ position: relative;
201
+ outline: 1px solid black;
202
+ display: flex;
203
+ height: 28px;
204
+ margin-bottom: nhsuk-spacing(4);
205
+ }
206
+ @media (min-width: 320px) and (max-width: 641px) {
207
+ .nhsuk-bmi-graph {
208
+ height: 24px;
209
+ }
167
210
  }
168
211
 
169
- .nhsuk-bp-legend-key-wrapper {
212
+
213
+ .nhsuk-bp-graph {
214
+ position: relative;
215
+ margin-left: 20px;
216
+ margin-right: 20px;
217
+ outline: 2px solid black;
170
218
  display: flex;
219
+ flex-direction: column;
220
+ height: 350px;
171
221
  }
172
- .nhsuk-bp-legend-key-wrapper:last-child {
173
- margin-top: 5px;
222
+ @media (max-width: 320px) {
223
+ .nhsuk-bp-graph {
224
+ height: 225px;
225
+ }
226
+ }
227
+ @media (min-width: 320px) and (max-width: 641px) {
228
+ .nhsuk-bp-graph {
229
+ height: 275px;
230
+ }
174
231
  }
175
232
 
176
- .nhsuk-bp-legend-display-card {
177
- margin-top: 50px;
178
- max-width: 300px;
233
+ .nhsuk-bp-graph-row {
234
+ flex-grow: 1;
235
+ display: flex;
179
236
  }
180
237
 
181
- .nhsuk-bp-legend-key-classification-low {
182
- border-bottom: none;
183
- box-shadow: none;
238
+ .nhsuk-bp-systolic-legend-wrapper {
239
+ display: flex;
240
+ align-items: flex-end;
241
+ margin-bottom: 10px;
184
242
  }
185
243
 
186
- .nhsuk-bp-legend-key-marker {
187
- border-bottom: none;
188
- box-shadow: none;
244
+ .nhsuk-bp-diastolic-legend-wrapper {
245
+ display: flex;
246
+ align-items: flex-start;
247
+ margin-top: 30px;
248
+ padding-left: 18px;
249
+ }
250
+
251
+ .nhsuk-bp-diastolic-legend-marker, .nhsuk-bp-systolic-legend-marker {
252
+ height: 16px;
253
+ margin-right: 5px;
254
+ border-left: 2px solid black;
255
+ }
256
+
257
+ .nhsuk-bp-systolic-legend-marker {
258
+ width: 40px;
259
+ border-top: 2px solid black;
260
+ }
261
+
262
+ .nhsuk-bp-diastolic-legend-marker {
263
+ width: 20px;
264
+ border-bottom: 2px solid black;
189
265
  }
190
266
 
191
267
 
@@ -249,59 +325,46 @@
249
325
  text-align: center;
250
326
  }
251
327
 
252
-
253
- .nhsuk-bp-graph {
254
- position: relative;
255
- margin-left: 20px;
256
- margin-right: 20px;
257
- outline: 2px solid black;
258
- display: flex;
259
- flex-direction: column;
260
- height: 350px;
328
+ .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
329
+ background: #330072;
261
330
  }
262
- @media (max-width: 320px) {
263
- .nhsuk-bp-graph {
264
- height: 225px;
265
- }
331
+
332
+ .nhsuk-bp-classification-healthy, .nhsuk-bp-legend-key-classification-healthy {
333
+ background: repeating-linear-gradient(-45deg, #59c3bc, #59c3bc 4.5px, #33b6ad 4.5px, #33b6ad 9px);
266
334
  }
267
- @media (min-width: 320px) and (max-width: 641px) {
268
- .nhsuk-bp-graph {
269
- height: 275px;
270
- }
335
+
336
+ .nhsuk-bp-classification-slightlyraised, .nhsuk-bp-legend-key-classification-slightlyraised {
337
+ background: #ffb81c;
271
338
  }
272
339
 
273
- .nhsuk-bp-graph-row {
274
- flex-grow: 1;
275
- display: flex;
340
+ .nhsuk-bp-classification-high, .nhsuk-bp-legend-key-classification-high {
341
+ background: repeating-linear-gradient(45deg, #e1746b, #e1746b 4.5px, #dd5349 4.5px, #dd5349 9px);
276
342
  }
277
343
 
278
- .nhsuk-bp-systolic-legend-wrapper {
279
- display: flex;
280
- align-items: flex-end;
281
- margin-bottom: 10px;
344
+ #nhsuk-bp-chart > figure {
345
+ margin: 0;
282
346
  }
283
347
 
284
- .nhsuk-bp-diastolic-legend-wrapper {
348
+ .nhsuk-bp-legend-key-wrapper {
285
349
  display: flex;
286
- align-items: flex-start;
287
- margin-top: 30px;
288
- padding-left: 18px;
350
+ }
351
+ .nhsuk-bp-legend-key-wrapper:last-child {
352
+ margin-top: 5px;
289
353
  }
290
354
 
291
- .nhsuk-bp-diastolic-legend-marker, .nhsuk-bp-systolic-legend-marker {
292
- height: 16px;
293
- margin-right: 5px;
294
- border-left: 2px solid black;
355
+ .nhsuk-bp-legend-display-card {
356
+ margin-top: 50px;
357
+ max-width: 300px;
295
358
  }
296
359
 
297
- .nhsuk-bp-systolic-legend-marker {
298
- width: 40px;
299
- border-top: 2px solid black;
360
+ .nhsuk-bp-legend-key-classification-low {
361
+ border-bottom: none;
362
+ box-shadow: none;
300
363
  }
301
364
 
302
- .nhsuk-bp-diastolic-legend-marker {
303
- width: 20px;
304
- border-bottom: 2px solid black;
365
+ .nhsuk-bp-legend-key-marker {
366
+ border-bottom: none;
367
+ box-shadow: none;
305
368
  }
306
369
 
307
370
  .nhsuk-bp-classification-low, .nhsuk-bp-legend-key-classification-low {
@@ -355,6 +418,22 @@
355
418
  z-index: 0;
356
419
  }
357
420
 
421
+ .nhsuk-bp-graph-cell {
422
+ flex-grow: 1;
423
+ border-bottom: 1px solid white;
424
+ border-left: 1px solid white;
425
+ background: transparent;
426
+ z-index: 4;
427
+ }
428
+
429
+ .nhsuk-bp-first-in-column {
430
+ border-bottom: none;
431
+ }
432
+
433
+ .nhsuk-bp-first-in-row {
434
+ border-left: none;
435
+ }
436
+
358
437
 
359
438
  .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
360
439
  background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
@@ -381,22 +460,28 @@
381
460
  }
382
461
  }
383
462
 
384
- .nhsuk-bp-graph-cell {
385
- flex-grow: 1;
386
- border-bottom: 1px solid white;
387
- border-left: 1px solid white;
388
- background: transparent;
389
- z-index: 4;
390
- }
391
463
 
392
- .nhsuk-bp-first-in-column {
393
- border-bottom: none;
464
+ .nhsuk-bp-graph-marker {
465
+ position: absolute;
466
+ z-index: 6;
467
+ height: 24px;
468
+ width: 24px;
469
+ margin: 0 0 -12px -12px;
394
470
  }
395
-
396
- .nhsuk-bp-first-in-row {
397
- border-left: none;
471
+ @media (max-width: 320px) {
472
+ .nhsuk-bp-graph-marker {
473
+ height: 20px;
474
+ width: 20px;
475
+ margin: 0 0 -10px -10px;
476
+ }
477
+ }
478
+ @media (min-width: 320px) and (max-width: 641px) {
479
+ .nhsuk-bp-graph-marker {
480
+ height: 22px;
481
+ width: 22px;
482
+ margin: 0 0 -11px -11px;
483
+ }
398
484
  }
399
-
400
485
 
401
486
  .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
402
487
  background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
@@ -410,63 +495,28 @@
410
495
  background: #330072;
411
496
  }
412
497
 
413
- .nhsuk-cbmi-chart-arrow-marker {
498
+
499
+ .nhsuk-cbmi-axis-marker {
500
+ border: 1px solid black;
414
501
  position: absolute;
415
- z-index: 4;
416
- height: 16px;
417
- width: 16px;
418
- margin: -9px 0 -8px -8px;
502
+ bottom: -5px;
503
+ margin-left: -0.5px;
504
+ box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
505
+ z-index: 100;
506
+ height: 33px;
419
507
  }
420
508
  @media (min-width: 320px) and (max-width: 641px) {
421
- .nhsuk-cbmi-chart-arrow-marker {
422
- height: 12px;
423
- width: 12px;
424
- margin: -9px 0 -6px -6px;
509
+ .nhsuk-cbmi-axis-marker {
510
+ height: 29px;
425
511
  }
426
512
  }
427
513
 
428
- .nhsuk-cbmi-chart-label-align-left {
429
- display: flex;
430
- justify-content: left;
431
- }
432
-
433
- .nhsuk-cbmi-chart-label-align-center {
434
- display: flex;
435
- justify-content: center;
436
- }
437
-
438
- .nhsuk-cbmi-chart-label-align-right {
439
- display: flex;
440
- justify-content: right;
441
- }
442
-
443
- .nhsuk-cbmi-chart-label-marker {
444
- position: relative;
445
- height: 25px;
446
- width: auto;
447
- white-space: nowrap;
448
- margin-top: -30px;
449
- z-index: 4;
450
- }
451
-
452
- .nhsuk-cbmi-chart-centile-marker {
453
- position: relative;
454
- font-weight: bold;
455
- margin-left: 5px;
456
- }
457
-
458
- .nhsuk-cbmi-chart-axis-marker {
514
+ .nhsuk-cbmi-axis-marker-label {
459
515
  position: absolute;
460
- margin-left: -1px;
461
- border: 1.5px solid black;
462
- box-shadow: 0px 0px white inset, 2px 0px white, -2px 0px white;
463
- z-index: 4;
464
- height: 28px;
465
- }
466
- @media (min-width: 320px) and (max-width: 641px) {
467
- .nhsuk-cbmi-chart-axis-marker {
468
- height: 24px;
469
- }
516
+ bottom: -25px;
517
+ left: -10px;
518
+ width: 20px;
519
+ text-align: center;
470
520
  }
471
521
 
472
522
  .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
@@ -520,148 +570,98 @@
520
570
  background: #330072;
521
571
  }
522
572
 
523
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
573
+ .nhsuk-cbmi-chart-arrow-marker {
524
574
  position: absolute;
525
- bottom: 0%;
526
- outline: 1px solid black;
527
- height: 28px;
575
+ z-index: 4;
576
+ height: 16px;
577
+ width: 16px;
578
+ margin: -9px 0 -8px -8px;
528
579
  }
529
580
  @media (min-width: 320px) and (max-width: 641px) {
530
- .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
531
- height: 24px;
581
+ .nhsuk-cbmi-chart-arrow-marker {
582
+ height: 12px;
583
+ width: 12px;
584
+ margin: -9px 0 -6px -6px;
532
585
  }
533
586
  }
534
587
 
535
- .nhsuk-cbmi-classification-underweight {
536
- z-index: 3;
537
- }
538
-
539
- .nhsuk-cbmi-classification-healthy {
540
- z-index: 2;
541
- }
542
-
543
- .nhsuk-cbmi-classification-overweight {
544
- z-index: 1;
545
- }
546
-
547
- .nhsuk-bmi-axis-marker {
548
- position: absolute;
549
- outline: 0.5px solid black;
550
- height: 5px;
551
- bottom: -5px;
552
- }
553
-
554
- .nhsuk-bmi-axis-marker-label {
555
- position: absolute;
556
- bottom: -25px;
557
- left: -10px;
558
- width: 20px;
559
- text-align: center;
588
+ .nhsuk-cbmi-chart-label-align-left {
589
+ display: flex;
590
+ justify-content: left;
560
591
  }
561
592
 
562
-
563
- .nhsuk-bp-graph-marker {
564
- position: absolute;
565
- z-index: 6;
566
- height: 24px;
567
- width: 24px;
568
- margin: 0 0 -12px -12px;
569
- }
570
- @media (max-width: 320px) {
571
- .nhsuk-bp-graph-marker {
572
- height: 20px;
573
- width: 20px;
574
- margin: 0 0 -10px -10px;
575
- }
576
- }
577
- @media (min-width: 320px) and (max-width: 641px) {
578
- .nhsuk-bp-graph-marker {
579
- height: 22px;
580
- width: 22px;
581
- margin: 0 0 -11px -11px;
582
- }
593
+ .nhsuk-cbmi-chart-label-align-center {
594
+ display: flex;
595
+ justify-content: center;
583
596
  }
584
597
 
585
- .nhsuk-cbmi-legend-key-classification-healthy, .nhsuk-cbmi-classification-healthy {
586
- background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
598
+ .nhsuk-cbmi-chart-label-align-right {
599
+ display: flex;
600
+ justify-content: right;
587
601
  }
588
602
 
589
- .nhsuk-cbmi-legend-key-classification-overweight, .nhsuk-cbmi-classification-overweight {
590
- background: #ffb81c;
603
+ .nhsuk-cbmi-chart-label-marker {
604
+ position: relative;
605
+ height: 25px;
606
+ width: auto;
607
+ white-space: nowrap;
608
+ margin-top: -30px;
609
+ z-index: 4;
591
610
  }
592
611
 
593
- .nhsuk-cbmi-legend-key-classification-underweight, .nhsuk-cbmi-classification-underweight {
594
- background: #330072;
612
+ .nhsuk-cbmi-chart-centile-marker {
613
+ position: relative;
614
+ font-weight: bold;
615
+ margin-left: 5px;
595
616
  }
596
617
 
597
-
598
- .nhsuk-cbmi-axis-marker {
599
- border: 1px solid black;
618
+ .nhsuk-cbmi-chart-axis-marker {
600
619
  position: absolute;
601
- bottom: -5px;
602
- margin-left: -0.5px;
603
- box-shadow: 0px 0px white inset, 1px 0px white, -1px 0px white;
604
- z-index: 100;
605
- height: 33px;
620
+ margin-left: -1px;
621
+ border: 1.5px solid black;
622
+ box-shadow: 0px 0px white inset, 2px 0px white, -2px 0px white;
623
+ z-index: 4;
624
+ height: 28px;
606
625
  }
607
626
  @media (min-width: 320px) and (max-width: 641px) {
608
- .nhsuk-cbmi-axis-marker {
609
- height: 29px;
627
+ .nhsuk-cbmi-chart-axis-marker {
628
+ height: 24px;
610
629
  }
611
630
  }
612
631
 
613
- .nhsuk-cbmi-axis-marker-label {
614
- position: absolute;
615
- bottom: -25px;
616
- left: -10px;
617
- width: 20px;
618
- text-align: center;
619
- }
620
-
621
632
 
622
- .nhsuk-bmi-classification-underweight, .nhsuk-bmi-legend-key-classification-underweight {
623
- background: #330072;
624
- }
625
-
626
- .nhsuk-bmi-classification-healthy, .nhsuk-bmi-legend-key-classification-healthy {
633
+ .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-legend-key-classification-healthy {
627
634
  background: repeating-linear-gradient(-45deg, #30b4ab, #30b4ab 4.5px, #00a499 4.5px, #00a499 9px);
628
635
  }
629
636
 
630
- .nhsuk-bmi-classification-overweight, .nhsuk-bmi-legend-key-classification-overweight {
637
+ .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-legend-key-classification-overweight {
631
638
  background: #ffb81c;
632
639
  }
633
640
 
634
- .nhsuk-bmi-classification-obese, .nhsuk-bmi-legend-key-classification-obese {
635
- background: repeating-linear-gradient(45deg, #da5147, #da5147 4.5px, #d5281b 4.5px, #d5281b 9px);
641
+ .nhsuk-cbmi-classification-underweight, .nhsuk-cbmi-legend-key-classification-underweight {
642
+ background: #330072;
636
643
  }
637
644
 
638
- .nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
645
+ .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
639
646
  position: absolute;
640
647
  bottom: 0%;
641
648
  outline: 1px solid black;
642
- border-right: 1px solid black;
643
- box-shadow: -1px 0px white inset, 2px 0px white, 0px -2px white;
644
649
  height: 28px;
645
650
  }
646
651
  @media (min-width: 320px) and (max-width: 641px) {
647
- .nhsuk-bmi-classification-obese, .nhsuk-bmi-classification-overweight, .nhsuk-bmi-classification-healthy, .nhsuk-bmi-classification-underweight {
652
+ .nhsuk-cbmi-classification-overweight, .nhsuk-cbmi-classification-healthy, .nhsuk-cbmi-classification-underweight {
648
653
  height: 24px;
649
654
  }
650
655
  }
651
656
 
652
- .nhsuk-bmi-classification-underweight {
657
+ .nhsuk-cbmi-classification-underweight {
653
658
  z-index: 3;
654
659
  }
655
660
 
656
- .nhsuk-bmi-classification-healthy {
661
+ .nhsuk-cbmi-classification-healthy {
657
662
  z-index: 2;
658
663
  }
659
664
 
660
- .nhsuk-bmi-classification-overweight {
665
+ .nhsuk-cbmi-classification-overweight {
661
666
  z-index: 1;
662
- }
663
-
664
- .nhsuk-bmi-classification-obese {
665
- border-right: none;
666
- box-shadow: none;
667
667
  }