- Drop tests for Django < 4.2 as it has reached EOL (@katdom13)
- Add tests for Wagtail 6.1 (@katdom13)
- Drop tests for Wagtail < 5.2 as they have reached EOL (@katdom13)
- Drop tests for Django 4.1 as it has reached EOL (@katdom13)
- Add tests for Python 3.12 (@katdom13)
- Add
wagtail-modeladmin
to testing dependencies (@katdom13)
- Upgrade for Wagtail 5.0+ compatibility
- Drop tests for Wagtail < 5.2 due to EOL
- Drop tests for Django < 4.2
- Use the latest version of the NHS.UK frontend library (v6.2.0)
- Fix for visually hidden checkbox from the warning callout component. If the title is "Important", the visually hidden prefix is now automatically added
- Use the latest version of the NHS.UK frontend library (v6.1.2)
- Update django version to 3.2
- Remove visually hidden checkbox from the warning callout component. If the title is "Important", the visually hidden prefix is now automatically added
- Add support for Wagtail 3.0
- revert migration for care card, use original types
primary
,urgent
,immediate
in admin, this prevents the need to edit migrations.
- Use the latest version of the NHS.UK frontend library (v6.1.0)
- Care card (deprecated)
- Update care card CSS class inline with the frontend library
- Do not render labels for hidden form fields
- Fix form templatetag. Templates were missing from the python package build
- Use the latest version of the NHS.UK frontend library (v5.2.1)
- 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