-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Change subhead to say subheading #6407
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.
I think we should also update block's name, file name and everything that uses the old name. Not sure if core/subhead
is an easy change in terms of backward compatibility.
@gziolo ah ok I didn't go deeper than copy as wasn't sure. Let me dive more! Thanks. |
I think this isn't and I found with changing things too much things imploded a little. What would be the basics I should change as a 'worst case'? |
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.
I asked @youknowriad if there is an easy way to update core/subhead
to core/subheading
. He suggested using similar solution to:
https://github.com/WordPress/gutenberg/blob/master/blocks/api/parser.js#L231-L234
However, it doesn't work with Subheading because it uses auto-generated className
for the block and it breaks all the existing blocks.
I would limit this change to what we already included.
Would that mean changing the file name back to |
@aduth I wanted to leave it as it is, but if you think we should revert this particular change, then let’s do it. Both aren’t perfect so I’d follow your judgement here. |
Just looping back but some feedback on this is that it may be preferred to be called subtitle. Before we change things here we should make sure there's a decision in that issue #5790 |
I think the slug and the folder name should match. Ideally the slug and the canonical "title" align, though there's already a few cases of precedent where we've been fine to diverge: namely the "Classic" block ( |
7e59a04
to
3cde112
Compare
@karmatosed @aduth - this PR was updated to contain only text changes as discussed. As soon as it's decided what name this block should have, those texts should be updated. We can also add the old name as |
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.
Code-wise 👍
Punting to 2.9 since discussion in #5790 (comment) appears unsettled. |
2632519
to
862d905
Compare
862d905
to
32efa02
Compare
Subheading it is 👍 |
Try branch for #5790.
Props @afercia