-
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
Navigation: Remove outdated separate "Home" link styles #36608
Conversation
Size Change: -634 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
I was able to confirm the issue, and the pull request solves it. This block is not already in WordPress core (unless you can show me where, because I do not see it in trunk?), |
Thank you for the review. I think it's entirely harmless to not backport this one, it's mostly a cleanup. The styles output were overridden by the generic classes anyway. But the block should be shipped already. The way you insert it is a bit roundabout at the moment: This speaks to us needing to continue to refine and improve the "lighter navigation flow" (#34041), which right now leans heavily towards the simpler experience. |
Yeah I struggled with figuring out how to add the block. |
It is not included: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/blocks?rev=52212 |
Ah! No urgency then. Thanks again. |
Description
The Home link block which can be inserted in the Navigation block simply links to your homepage. It currently duplicates some styles (padding, margin, others) from other Navigation items. But as of #33918, those styles are no longer needed. This PR removes them.
How has this been tested?
Try the navigation block with a home link, and verify that the Home link has the same paddings, gap and other metrics that other items have:
Checklist:
*.native.js
files for terms that need renaming or removal).