Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9a2cad7
Add reverse hover colour
anandamaryon1 Jul 2, 2026
85ab245
Add target hover colour (from task list hover colour)
anandamaryon1 Jul 2, 2026
5a95b5c
Add task list hover border colour change
colinrotherham Jul 2, 2026
4b3c758
Update target hover colour
colinrotherham Jul 2, 2026
846385d
Add reverse target hover colour
anandamaryon1 Jul 2, 2026
7a38cb7
Update tables fixtures to use default page background colour
colinrotherham Jul 2, 2026
0afa736
Work around SVGs not inheriting color from `:visited` links in Safari
colinrotherham Jul 2, 2026
9288ee8
Apply target hover colour to pagination
anandamaryon1 Jul 2, 2026
062eaa7
Uplift MOJ Frontend sortable table component
colinrotherham Jul 1, 2026
7aef477
initial styling for sortable tables - WIP
anandamaryon1 Nov 25, 2025
1ea472e
Update sortable table examples
frankieroberto Jul 1, 2026
2bcd0ae
Various code improvements
frankieroberto Jan 12, 2026
285fdd9
Add some tests for sortable table
frankieroberto Jul 1, 2026
3504db9
Allow tables to be initialised when there are no sortable columns
frankieroberto Jul 1, 2026
de4bd74
Add a modifier class to tables with sortable columns
frankieroberto Jan 12, 2026
4cf01da
Update all icons page allow fewer icons per batch
colinrotherham Jul 1, 2026
e89a45d
Add up-down icon
frankieroberto Apr 13, 2026
76d205c
Add support for server-side table sorting (#1832)
frankieroberto Mar 19, 2026
81c3a62
Add option to set default initial sort order
frankieroberto Apr 8, 2026
5a4152a
Use a template for the icons
frankieroberto Apr 13, 2026
cd074b2
Add changelog entry
frankieroberto Apr 17, 2026
993eb77
Rename data attribute
frankieroberto Apr 28, 2026
6f2ac55
Add Nunjucks helper params
frankieroberto Apr 28, 2026
beb7b8f
Give table examples row headers
anandamaryon1 May 18, 2026
debfbd5
fix - expand click area for sortable table header
anandamaryon1 May 19, 2026
1c853d0
Update reference images
colinrotherham May 19, 2026
bd63da4
Update default status text to use 'sorted'
frankieroberto May 19, 2026
df41da2
Switch to use CSS for icons
frankieroberto May 22, 2026
cfbbc3c
Refactor to use TypeScript for direction
frankieroberto May 22, 2026
b2ce368
Drop icon size on mobile
frankieroberto Jun 23, 2026
c2971de
Add reverse colours for sortable tables
anandamaryon1 Jul 2, 2026
9291c67
Use new target hover colours
colinrotherham Jul 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,77 @@ Note: This release was created from the `support/10.x` branch.

### :new: **New features**

#### Sortable tables

You can now make [tables](https://service-manual.nhs.uk/design-system/components/table) sortable, so that clicking the header sorts the table by that column.

To do this, add the `aria-sort="none"` attribute to the `<th>` header cell of any columns that you want to be sortable.

The 1 column which is sorted by default should have `aria-sort="ascending"` or `aria-sort="descending"`.

For example:

```njk
{{ table({
caption: "Childhood MMR coverage",
head: [
{
text: "Nation",
attributes: {
"aria-sort": "ascending"
}
},
{
text: "MMR",
format: "numeric",
attributes: {
"aria-sort": "none"
}
}
],
rows: [
[
{
text: "England"
},
{
text: "83.7%",
format: "numeric"
}
],
[
{
text: "Northern Ireland"
},
{
text: "86.4%",
format: "numeric"
}
],
[
{
text: "Scotland"
},
{
text: "89.2%",
format: "numeric"
}
],
[
{
text: "Wales"
},
{
text: "89.5%",
format: "numeric"
}
]
]
}) }}
```

This was added in [pull request #1654: Add option to make tables sortable](https://github.com/nhsuk/nhsuk-frontend/pull/1654).

#### Add an "all" option to checkboxes

You can now add an "all" option to checkboxes when JavaScript is available. This gives users the option to quickly select or unselect all the checkboxes.
Expand Down Expand Up @@ -574,6 +645,7 @@ You can also [add icons](https://service-manual.nhs.uk/design-system/styles/icon
- `images/nhsuk-icon-arrow-right.svg`
- `images/nhsuk-icon-arrow-up-circle.svg`
- `images/nhsuk-icon-arrow-up.svg`
- `images/nhsuk-icon-arrow-up-down.svg`
- `images/nhsuk-icon-chevron-down-circle.svg`
- `images/nhsuk-icon-chevron-left-circle.svg`
- `images/nhsuk-icon-chevron-right-circle.svg`
Expand Down
Loading
Loading