eightshift-frontend-libs
eightshift-frontend-libs copied to clipboard
Update bem menu
Still needs to be tested and tweaked.
Added a JS that will make it accessible (tabbable), modified the structure to conform to the BEM structure, and work with the updated BEM menu walker.
I'll merge this when I test this on an example project. So far the build process is broken so I'm blocked on this.
Ref. https://github.com/infinum/eightshift-libs/issues/144
Closing this, as we're not using WP menus anymore, there's a new "Site navigation" and "Site footer" block to cover basic functionality.
Btw the only 'issue' with the walker in the libs was not updating the arguments (removing optional arg at the end iirc) to match the fix in the WP Core.
https://github.com/infinum/eightshift-libs/pull/373/files#diff-f7770bbdec7f1329b3dfd2de07b166174ff20669cb388f09b795e60f60ed38d7
The thing you added with site navigation and footer is messing things up for multilingual sites.
Why didn't you start using FSE instead if you wanted to have reusable footers and headers?