-
Notifications
You must be signed in to change notification settings - Fork 58
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
H2 heading block text changed to bold #4063
Comments
👋 @antonis , could this perhaps be relevant to GSS work? |
Thank you for reporting this @reginabally and thank you for the ping @hypest 🙇 im.movI'm tempted to say that this is some iOS Apple gem that is hard to override but maybe it is worth digging deeper. Wdyt? ps. I don't think this has anything to do with the GSS work but @geriux may confirm this. |
I wonder if it's related to the issue this PR dealt with. Adding the |
Sure @hypest - will do. |
After digging into this deeper I've determined that the solution I proposed above doesn't quite get us there. It will block bold styles on headings when it happens unintentionally as in this case, but also when the user intentionally tries to make heading text bold. We wouldn't want to strip that ability away. It worked for the original PR because title styling isn't possible. It may require digging into Aztec to uncover the root. It seems I'd be happy to do a deep dive on this since it involves iOS, but wanted to run this idea by you first, @hypest. Thanks! |
Hmm, right, striping the Regarding working on it, I'm concerned by the fact that the output html is affected so, I consider that both a writing flow issue and a content issue. I'll take you on your offer to dig deeper to fix it on the Aztec (perhaps) side @twstokes , thanks. But, let's start with a tight timebox for it, say, one day max. We can re-assess afterwards. WDYT? |
Sounds good @hypest, I'll report back. |
I have a WIP PR here that appears to solve the problem, but I don't have the highest confidence that it's the best solution. In my troubleshooting I found that when invoking autocorrect (or any other OS level string update like double-tapping the spacebar), the string inserted into Aztec was missing heading attributes that we rely on to determine whether text is a heading or bold (or both). If the attribute is missing in the new string it'll ultimately get processed with The potential fix is to insert this attribute when we detect it's missing. |
Just noting that another way this bug emerges is when splitting a heading block that has some words that have been autocorrected. The difference in bolded words become visible as soon as a block is split. Originally reported at WordPress/gutenberg#36784 (but closed due to being a dupe). |
Describe the bug
It was reported in 4340849-zd-woothemes that the H2 heading block text was changed to bold when editing the content on WPiOS 18.2.1. This was reported on an Atomic site using the Seedlet theme. I was able to reproduce this on a Simple site with the same theme but the outcome isn't consistent.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the heading text format is consistent.
Screen recording
heading-test.mp4
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: