Open alexgibson opened 1 week ago
hrm yeah, bedrock's nav is a customized component that never got backported to Protocol so all the names are different. We could implement the same fixes in bedrock's custom JS easily enough.
I was wondering if we could actually revert to using Protocol's JS instead? It seems to be mostly duplicated just to change some selector names, and it seems like potentially a lot of effort to duplicate all the fixes?
Yeah, it was literally just to avoid naming conflicts. The redesigned nav restyled a bunch of things but the underlying structure is mostly the same, so I ended up dropping the mzp-
prefix to avoid issues with core Protocol. Then had to dupe the script just to work with the different names. If we use Protocol's JS we'd need to add the prefix to the nav and try to avoid any styling conflicts as well, but that might not be too hard. Worth trying anyway.
Possible resolutions:
Description
The main nav in bedrock is missing fixes such as https://github.com/mozilla/protocol/issues/847 because it uses it's own (now outdated) copy of the nav JS.
I'm not sure what the best fix is. Maybe it's something we can address in the site refresh?