We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The accessibility checker in the page editor (introduced in Wagtail 6.0) breaks when adding an EmbedBlock to a page.
EmbedBlock
In a new Wagtail project, create (and install) a new app containing the following:
StreamField
RichTextBlock
{% wagtailuserbar %}
In the Wagtail editor, create a new page using the model and add the following:
Note that the accessibility checker reports an issue: Incorrect heading hierarchy. Avoid skipping levels.
Incorrect heading hierarchy. Avoid skipping levels.
Now add an EmbedBlock with a link to an external service, e.g. https://soundcloud.com/healthandbeautyclub/hb-06-bored-lord, and save the page
Note that the accessibility checker no longer reports any issues, even though the skip-level heading hierarchy is still present
In browser developer tools, errors relating to the axe library can be seen:
axe
Error: Expect axe._selectorData to be set up
Uncaught (in promise) Error: Axe is already running. Use await axe.run() to wait for the previous run to finish before starting a new run.
Uncaught (in promise) Error: Axe in frame timed out: :root
Anyone can contribute to this. View our contributing guidelines, add a comment to the issue once you’re ready to start.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue Summary
The accessibility checker in the page editor (introduced in Wagtail 6.0) breaks when adding an
EmbedBlock
to a page.Steps to Reproduce
In a new Wagtail project, create (and install) a new app containing the following:
StreamField
which accepts blocks of typeEmbedBlock
andRichTextBlock
{% wagtailuserbar %}
tag, to enable the accessibility checkerIn the Wagtail editor, create a new page using the model and add the following:
RichTextBlock
formatted as Heading 2RichTextBlock
formatted as Heading 4Note that the accessibility checker reports an issue:
Incorrect heading hierarchy. Avoid skipping levels.
Now add an
EmbedBlock
with a link to an external service, e.g. https://soundcloud.com/healthandbeautyclub/hb-06-bored-lord, and save the pageNote that the accessibility checker no longer reports any issues, even though the skip-level heading hierarchy is still present
In browser developer tools, errors relating to the
axe
library can be seen:Error: Expect axe._selectorData to be set up
Uncaught (in promise) Error: Axe is already running. Use await axe.run() to wait for the previous run to finish before starting a new run.
Uncaught (in promise) Error: Axe in frame timed out: :root
Technical details
Working on this
Anyone can contribute to this. View our contributing guidelines, add a comment to the issue once you’re ready to start.
The text was updated successfully, but these errors were encountered: