Open frkly opened 9 hours ago
Hi @frkly , Thank you for highlighting this issue. I was able to successfully reproduce it and agree that it is important to include hyperlinks that flow seamlessly without any forced line breaks. Example:
https://github.com/user-attachments/assets/0716eb37-a8df-4e7c-8c04-89ecb60b90e8
Description
Ideally, the text in captions, including hyperlinks, should flow continuously without any forced line breaks. However, currently, the presence of a hyperlink leads to text breaking before or after it if there isn't sufficient width to accommodate it without wrapping. In my estimation, this issue stems from a lack of consideration for hyperlinks within figcaptions when addressing Issue #62556, which focused on fixing the focus ring around images when they are linked.
Step-by-step reproduction instructions
.wp-block-image a
. Toggle thedisplay: inline-block;
on and off to observe the differences in how the caption text is displayed.Screenshots, screen recording, code snippet
https://github.com/user-attachments/assets/ca62f567-77f9-4234-b7fd-cbd81be57ff3
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.