-
Notifications
You must be signed in to change notification settings - Fork 385
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
Reuse validation error titles from validated URL screen in block warning notice #4401
Reuse validation error titles from validated URL screen in block warning notice #4401
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
if ( message ) { | ||
return message; | ||
return message; // @todo It doesn't appear this is ever set? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The REST response result doesn't include a message
key, so I don't think it's set. I couldn't find any reference to it either in any other React component... maybe @swissspidy could shine a light on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems it's only be used in its test:
amp-wp/assets/src/block-validation/components/validation-error-message/test/index.js
Line 13 in 4a59e23
const errorMessage = render( <ValidationErrorMessage message="Hello World" /> ); |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
(Thanks to PHPStorm for trimming it pre-commit)
…ation-error-titles-to-block-warnings * 'develop' of github.com:ampproject/amp-wp: Remove title tag from AMP SVG icons Use a Tooltip, thanks to Pierre's suggestion Correct failed unit test from dependency Remove @wordpress/nux, as it looks like it's not used anymore Remove DotTip from import statements Remove DotTip, as it caused a console warning Improve AMP preview button in WP 5.4 and with Gutenberg Make phpstan happy Remove multiple instances of div#fb-root Test removal of <p> tag Eliminate unnecessary double loop for XPath query since DOMNodeList is not live Remove phpstan.neon.dist from build Use `nodeName` property Remove registration of Facebook embed handler
Summary
Fixes #3664.
Given a Custom HTML block with this content:
Also fixes the font-family of the list items to also be the system font.
Checklist