Skip to content
New issue

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

Ensure error count badge counts StreamField non-block errors #7361

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

gasman
Copy link
Collaborator

@gasman gasman commented Jul 22, 2021

Fixes #7353

The error counter was only counting elements with class error-message, but non-block errors on ListBlock / StreamBlock use a different styling, help-critical.

(For the record, I've checked that the uses of help-critical elsewhere in the codebase are also error messages, so this selector isn't being over-broad. Although hypothetically if there were any items that weren't actual error messages but warranted an "it's critically important that you read this advice" class, flagging them up via the badge is probably the right thing anyway...)

Fixes wagtail#7353

The error counter was only counting elements with class error-message, but non-block errors on ListBlock / StreamBlock use a different styling,help-critical.
@squash-labs
Copy link

squash-labs bot commented Jul 22, 2021

Manage this branch in Squash

Test this branch here: https://gasmanfixbadge-for-non-block-e-xt566.squash.io

@cnk
Copy link
Member

cnk commented Jul 22, 2021

Thanks this works for me.

@cnk cnk merged commit 3513229 into wagtail:main Jul 22, 2021
gasman added a commit that referenced this pull request Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using non_block_errors in ListBlock
2 participants