-
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
Make Site-Title a link #24725
Make Site-Title a link #24725
Conversation
Solving the editor problem might be tricky; it might require some architectural changes. Some thoughts:
This will require changes to the |
Yep, that was my thought as well - we might need to touch the |
Some e2e tests and JS unit tests are failing (which seems unrelated). I'll restart them. |
Seems to fail because of this
|
I'll try a rebase. |
27c0abc
to
b6c2cdc
Compare
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.
One note here. Let's also wait for CI to go green. Otherwise looks good to merge 👍
The e2e test errors are a bit weird, I'll try a rebase. |
b6c2cdc
to
f38a927
Compare
@ockham is this something that we actually need or want to solve in the editor? What would the behavior be in that 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.
This looks good to me! As a follow-up we might need to update the relevant FSE themes to preserve the existing look, since this will likely introduce underline for site title that previously wasn't there?
That's a bit of TBD indeed. The Site Logo does something like that ( Furthermore, I think there have been some designs on making those links better 'navigable' in the editor -- possible in a similar way as Google Docs (small popover with a few options). So I think it makes sense to pave the way 🤔 |
Yeah, we'll probably need to do that. |
Another weird e2e error, this time about a snapshot 🙄 I'll try another rebase. |
e30047b
to
6dc327b
Compare
Co-authored-by: Bernie Reiter <[email protected]>
6dc327b
to
1fc513e
Compare
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.
Tests are finally passing 👍
Description
Closes #24716
Turns Site Title into a link on the frontend.
Caveats
Site Title is not a link in the editor. I tried multiple ways to solve it, but none of them worked properly.
tagName
forRichText
Block then it gives a warning about using an inline elementtagName
(a
element wrapped in thetagName
) caused usability issues. Thea
element hijacked content editing. No matter where I clicked in the text, it always put the caret at the start of the text. If I usedpointerEvents: 'none'
then it ignored the hover style.Looking forward to suggestions.
How has this been tested?
Types of changes
Breaking change? (It breaks styling by adding a new element)
Checklist: