Home link block doesn't use current-menu-item
class when on front page
#34770
Labels
[Block] Home Link
Affects the Home Link Block
[Block] Navigation
Affects the Navigation Block
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
When you create a navigation using the
core/navigation
block you often want to add a link toHome
. It's great that we supply a "Home link" block for this purpose.However, whilst normal Nav Link blocks output a
current-menu-item
class when you are on that page, the Home link block does not. This makes it impossible to style the current page consistently across the navigation.What is your proposed solution?
The home link block should output the
current-menu-item
class when you are on that page. It should mirror the same functionality as thecore/navigation-link
block.The text was updated successfully, but these errors were encountered: