-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Pullquote block: Fix citation markup in Editor #39414
Conversation
Size Change: +4.77 kB (0%) Total Size: 1.16 MB
ℹ️ View Unchanged
|
Works well in the editors, thank you. The failing tests seems unrelated. |
Thanks for reviewing @carolinan, I'll give it a day or so and rebase to try and clear the failing tests. They do appear unrelated. |
Thanks @ndiego related issue: #19847 There is another PR for this already at #38610 ; I didn't check whether the two approaches are the same. For what it's worth: This arose when I was investigating my own organization's internal use of the pullquote block a few months ago: The cite element may not be the most appropriate HTML element to be used because it is to only be used to refer to a published work and not to be used to refer to a person (which my org have been using it as such for some time) which states that "person's name is not the title of a work — even if people call that person a piece of work" there is an issue discussing the appropriate HTML element #20606 I understand that the ship (of using the cite element) has already sort of sailed so but thought you and any other reviews should know. |
Thanks for calling this out @skorasaurus, I missed that other PR! This PR matches the current quote block implementation exactly. Understanding the potential concerns around the use of |
All tests have passed, just waiting on approval |
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.
LGTM 👍
I only have a small nitpick about the style
added, but it's not something that should block this PR, so I'll go ahead and pre-approve it 👍
* Pullquote: Fix citation markup in Editor * Fix linting error
What?
This PR changes the pullquote citation markup in the Editor from
<div>
to<cite>
to improve consistency between the Editor and Frontend. The Frontend already uses<cite>
.Why?
This bug appears to have been an oversight, the quote block already has this fix. This PR copies the quote block implementation exactly.
Testing Instructions
<cite>
, and so is the Frontend.Props to @mrleemon for the original PR: #38610