- Remove static
aria-label="Open menu"
on header menu toggle. Add descriptivearia-expanded="false"
to toggle on inital page load.
- Use the latest version of the NHS.UK frontend library (v5.2.0)
- Add optional default heading level setting for care cards
- Deprecated blocks
PanelBlock
,PanelList
,GreyPanelBlock
,PromoBlock
,PromoGroupBlock
have been removed from the plugin. - In order to replace these blocks with the recommended
CardBasicBlock
-type blocks, you should:- Upgrade to v0.8.0 or v0.7.0 where the deprecated blocks exist alongside the Card blocks.
- Migrate
PanelBlock
andGreyPanelBlock
toCardFeatureBlock
as follows:
label -> feature_heading heading_level -> heading_level body -> body
- Migrate
PanelList
toCardGroupBlock
by mappingpanels
tobody
with theBodyStreamBlock
class and settingcolumns
as'one-half'
. - Migrate
PromoBlock
toCardImageBlock
as follows:
url -> url heading -> heading description -> body content_image -> content_image alt_text -> alt_text size -> heading_size heading_level -> heading_level
- Migrate
PromoGroupBlock
toCardGroupBlock
by mappingpromos
tobody
using theBodyStreamBlock
class,column
maps tocolumn
.size
andheading_level
map to their respective fields in the child Card blocks.
- After all deprecated blocks have been migrated, you can upgrade to v1.0.0 without any loss of data.
- Add the organisational header variant
- Add form component
- Remove
PanelBlock
,PanelList
,GreyPanelBlock
,PromoBlock
,PromoGroupBlock
- Improve test coverage
- Use the latest version of the NHS.UK frontend library (v5.1.0)
- Use the latest version of the NHS.UK frontend library (v5.0.0)
- Use the latest version of the NHS.UK frontend library (v4.1.0)
- Add internal page link option to ActionLink and Card blocks
- Use the latest version of the NHS.UK frontend library (v4.0.0)
- Add Card blocks
- Add deprecation notice to Panel and Promo blocks
- Add visually_hidden_prefix to warning callout blocks to enable hidden text for screenreaders
- Rename the label for the Don't list in the admin panel
- Allow h5 and h6 heading level inside all blocks that contain headings.
- Updated the do and don't panel to allow custom labels
- Use the latest version of the NHS.UK frontend library (v3.0.4)
- Make the active link in a contents-list non-clickable
- Upgrade to the nhsuk frontend library v3 (breaking changes)
- Removed emergency alert component
- Removed feedback banner component
- Allow sub-blocks inside Details, Expander and CareCard blocks (breaking change)
- Add summary list component
- Allow templatetags to be used without a
page
context - Add icons to blocks for nicer streamfield UI
- Add search_action and search_field_name params to header for custom search endpoints
- New components
- Small component fixes
- Renamed "breadcrumbs" to "breadcrumb"
- Flatten component context so templates can be reused more easily
- Renamed the project from wagtail-nhs-style to wagtail-nhsuk-frontend
- Added lots of new components