-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add menu-item-home class to Navigation for front page #37301
Conversation
@jasmussen can you try it again? I'm getting the class on the front-end but some async updates were a bit wonky so I'd appreciate another set of eyes. |
Took the latest for a spin, and I might be doing something wrong. I'm still seeing the class on the frontend, but not in the editor. Or was that not the change? Thanks for the work! |
@jasmussen it was, of course, a tpyo. |
ee2dd25
to
6d0f12c
Compare
Size Change: +60 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
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.
Nice! This works well for me. See it on the frontend:
I'd love a code sanity check, perhaps by @tellthemachines since she's touched this. And this would not be urgent and can easily wait until after the break.
Also, one final question: menu-item-home
as a class name is probably the right one to use since it matches the existing legacy classname. Just want to flag again whether this is the name we want to use, or whether there's another "this is the homepage" class used somewhere in the codebase.
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.
Thanks, @georgeh.
The code looks good to me 👍
Cherry-picked for the 5.9.1. |
* Add menu-item-home class to Navigation for the front page Closes #29423
Closes #29423
Description
How has this been tested?
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).