Skip to content

Commit 11aab6b

Browse files
Update migration guide
1 parent bc47ba8 commit 11aab6b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/upgrade-to-6.0.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,36 @@ The [panel](https://service-manual.nhs.uk/design-system/components/panel) compon
6060

6161
This replaces the [list panel component](#list-panel) which was removed in NHS.UK frontend v6.0.0.
6262

63+
### Summary list rows and actions
64+
65+
The [summary list](https://service-manual.nhs.uk/design-system/components/summary-list) component now includes improvements from NHS.UK frontend v9.6.2:
66+
67+
- new props `noBorder` and `noActions` supported at `<SummaryList.Row>` level
68+
- new child component `<SummaryList.Action>` for row actions
69+
70+
```patch
71+
<SummaryList>
72+
- <SummaryList.Row>
73+
+ <SummaryList.Row noBorder>
74+
<SummaryList.Key>Name</SummaryList.Key>
75+
<SummaryList.Value>Karen Francis</SummaryList.Value>
76+
<SummaryList.Actions>
77+
- <a href="#">
78+
- Change<span className="nhsuk-u-visually-hidden"> name</span>
79+
- </a>
80+
+ <SummaryList.Action href="#" visuallyHiddenText="name">
81+
+ Change
82+
+ </SummaryList.Action>
83+
</SummaryList.Actions>
84+
</SummaryList.Row>
85+
- <SummaryList.Row>
86+
+ <SummaryList.Row noActions>
87+
<SummaryList.Key>Date of birth</SummaryList.Key>
88+
<SummaryList.Value>15 March 1984</SummaryList.Value>
89+
</SummaryList.Row>
90+
</SummaryList>
91+
```
92+
6393
### Support for React Server Components (RSC)
6494

6595
All components have been tested as React Server Components (RSC) but due to [multipart namespace component limitations](https://ivicabatinic.from.hr/posts/multipart-namespace-components-addressing-rsc-and-dot-notation-issues) an alternative syntax (without dot notation) can be used as a workaround:

0 commit comments

Comments
 (0)