You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -16,6 +17,10 @@ NHS.UK Frontend ported to React
16
17
17
18
If you're coming from versions of the library prior to 1.0.0, please give [this doc](/docs/upgrade-to-1.0.md) a brief read, as there a number of changes between 0.x release and the 1.0 release.
18
19
20
+
## Upgrading to 2.0
21
+
22
+
If you're upgrading to 2.0, please be aware we have made some breaking changes. [This doc](/docs/upgrade-to-2.0.md) has the details.
23
+
19
24
## Installation
20
25
21
26
You can install this package using either `yarn` or `npm`.
@@ -55,8 +60,9 @@ A storybook containing all of the components and their usage can be found [here]
55
60
- Thomas Judd-Cooper ([GitHub](https://github.com/tomdango))
56
61
- Sam Brown ([GitHub](https://github.com/samueldavidbrown))
57
62
- Luke Pearson ([GitHub](https://github.com/lukepearson))
63
+
- Kevin Kuszyk ([GitHub](https://github.com/kevinkuszyk))
Copy file name to clipboardExpand all lines: docs/upgrade-to-2.0.md
+21-4Lines changed: 21 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,14 @@
1
-
# Unreleased Changes
1
+
# Upgrading to 2.0
2
+
3
+
There are some breaking changes you'll need to be aware of when upgrading to v2. These are mostly related to us upgrading our dependency on [nhsuk-frontend to v4](https://github.com/nhsuk/nhsuk-frontend/blob/master/CHANGELOG.md#400---26-october-2020) which also includes some breaking changes.
4
+
2
5
## New Card Component
3
6
4
7
The new Card component from `nhsuk-frontend` 4 has been added. Check out the storybook for usage examples!
5
8
6
-
## WarningCallout
9
+
## Warning Callout
7
10
8
-
### Removal of WarningCallout "label" prop
11
+
### Removal of Warning Callout `label` prop
9
12
10
13
The WarningCallout `label` prop has been removed, and replaced with `WarningCallout.Label`.
11
14
@@ -30,7 +33,7 @@ Existing usages of the WarningCallout will need to be replaced with the new synt
30
33
</WarningCallout>
31
34
```
32
35
33
-
### Addition of hidden text on the WarningCallout.Label
36
+
### Addition of hidden text on the Warning Callout Label
34
37
35
38
The `WarningCallout.Label` now has the hidden text `Important: ` before the label content. If this causes an issue in your application, and you would like to change or disable this hidden text you are able to do via the `visuallyHiddenText` prop.
0 commit comments