Closed (fixed)
Project:
Olivero
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2020 at 13:10 UTC
Updated:
21 Oct 2020 at 02:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jerseycheeseComment #3
jerseycheeseHere's a patch that adds the
primary-navclass in the block wrapper, where the<nav>wrapper element is.I think this is the ideal situation that follows existing convention of utilizing the
<nav>wrappers in block templates, rather than adding cruft of a new wrapper block element added to the menu template (a<div>?).We could do that instead if we want to keep the block element & class in the same template as the element/modifier classes, but adding it in the menu's complimentary block template seemed OK to me.
Comment #4
mherchelYeah, adding it into the block element seems fine, but IMO it's a lot to create a new template just to add a single CSS class.
Is it possible to reuse this template and then add the class, or add the class via preprocess?
Thanks for working on this!
Comment #5
rahulrasgon commentedComment #6
rahulrasgon commentedAs #4
Please review the patch.
Thanks
Comment #8
mherchel#6 looks great! Committing. Thanks for the work on this!