bedrock icon indicating copy to clipboard operation
bedrock copied to clipboard

Deprecate jQuery

Open Wolfr opened this issue 3 years ago • 1 comments

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

Wolfr avatar Jul 08 '21 09:07 Wolfr

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

Wolfr avatar Nov 29 '21 10:11 Wolfr