Open Wolfr opened 3 years ago
All JS in Bedrock's core should be written as vanilla JS, not using jQuery. This was mentioned before but this is the “official” issue to track progress.
import $ from 'jquery'; import './prototype-nav'; import './styleguide-code-samples'; import './styleguide-typography'; import './styleguide-search'; import rememberScroll from './styleguide-remember-scroll'; window.$ = $; rememberScroll('#__prototype-nav'); rememberScroll('.br-styleguide-content'); rememberScroll('.br-styleguide-navigation-holder');
'./prototype-nav';
'./styleguide-typography';
'./styleguide-search';
rememberScroll
Prototype nav is the one that's left, there is a PR but it doesn't work yet. https://github.com/usebedrock/bedrock/pull/370
All JS in Bedrock's core should be written as vanilla JS, not using jQuery. This was mentioned before but this is the “official” issue to track progress.
'./prototype-nav';
needs to be looked at, this is the hardest one'./styleguide-typography';
is done'./styleguide-search';
needs to be looked at, should be fairly simple #405rememberScroll