bedrock
bedrock copied to clipboard
Deprecate jQuery
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';
needs to be looked at, this is the hardest one - [x] Code samples is well under way (in prism branch)
- [x]
'./styleguide-typography';
is done - [x]
'./styleguide-search';
needs to be looked at, should be fairly simple #405 - [x]
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