Update: Revert back to fit text toggle UI#73890
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: -471 B (-0.02%) Total Size: 2.58 MB
ℹ️ View Unchanged
|
|
Backporting this to a minor release seems like it would have too much of an impact. For example, this PR adds new strings. In general, adding new translation strings is not allowed after the RC release. |
Good points, but it is not the first time a minor release is complex, for example some releases between 4.9 and 5.0 were considerably big. Off-course adding this in a minor would require leadership backing, as it is not something usual. |
|
Let's ship this in the plugin and give it a little time of testing before deciding if we should make it part of a minor release. |
92a4c6f to
0e2b61b
Compare
|
This PR got some conflicts and was rebased. I think it is ready for a review. |
t-hamano
left a comment
There was a problem hiding this comment.
It's a clean approach with no hacks, and I personally prefer it consistently. Once we fix the E2E tests, I think we can ship it.
Just to be sure, I'd be happy to get some second feedback from people who have worked on this feature so far.
02e01db to
6ccb2af
Compare
|
I'm here for it! |
|
I'm very happy to see this change back to the old UI! I think it makes a lot of sense for all the stated reasons. Two notes on things I've learned and thought about since the launch:
|
It is a good point, but allowing font size with it being a fallback may not be intuitive for the users, as it looks like nothing happened. |
It is a complex scenario, putting 200% zoom does not breaks fit text, as it recomputes the maximum possible size, and fits independently of the zoom settings. But depending on the container layout zooming in to 200% may not make fit text 200% bigger, unless the container also increase 200% its size which is rarely the case. So we are in situation where we don't break functionality when there is a 200% in that sense we are complying. The issue may be that with 200% zoom fit text does not gets 200% bigger because it may have already used the maximum size for its container. I'm not sure if this is complying or not. But if we are not complying I guess we should mark fit text as an "image text"/decoration, if it was an SVG implementation it would be an image. |
|
Thank you all for the reviews! |
Absolutely no shift of font size would be the ideal outcome as that wouldn't be any different than the page loading with the exact correct font size. However, that also strikes me as extremely unlikely, and at least reducing the content shift would be greatly appreciated.
That's correct. Zooming 200% is supposed to make the text 200% better.
Please do not do this! People definitely expect written content to be included in the document. Marking it as decorative could potentially remove the content from the accessibility tree, breaking accessibility in a new way. Is it possible for the Accessibility Team to weigh in on this? |
Reverts the stretch text block variations implementation in favor of the previous toggle UI approach.
This PR reverts the following commits (handling the conlicts that happened during the revert):
We are doing the revert because of feedback that the variations approach is not providing an ideal experience. And this will more easily allow integration on third party blocks. As follow up we will enable the support in Post and Site title.
cc: @youknowriad
Test plan