Overview

Wagtail 4.0, released on August 31, 2022, continues modernization with accessibility improvements and a new panel system.

Main Features

Accessibility

The admin interface is WCAG 2.1 AA compliant with better contrast, full keyboard navigation, and ARIA labels.

python
# Admin templates are accessible by default
# Custom widgets must follow the guidelines

from wagtail.admin.panels import FieldPanel

class ArticlePage(Page):
    body = RichTextField()

    content_panels = Page.content_panels + [
        FieldPanel('body'),  # accessible by default
    ]

New panel system

Panel imports are reorganized under wagtail.admin.panels for a more consistent API.

python
# Wagtail 4.0: new imports
from wagtail.admin.panels import (
    FieldPanel, MultiFieldPanel,
    InlinePanel, FieldRowPanel,
)

# Replaces old imports:
# from wagtail.admin.edit_handlers import FieldPanel

Sources