mp-design-system 1.2.34 → 1.2.35

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-design-system",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "npm-run-all --parallel bundle:*",
@@ -17,7 +17,7 @@ module.exports = {
17
17
  {
18
18
  title: 'Sticky on scroll',
19
19
  context: {
20
- classes: 'u-sticky',
20
+ classes: 'c-internal-nav--sticky',
21
21
  title: 'Mastersizer range',
22
22
  links: [
23
23
  { link: '#overview', label: 'Overview' },
@@ -4,8 +4,8 @@
4
4
  transition: 200ms all;
5
5
 
6
6
  &--sticky {
7
- @extend .u-sticky;
8
- top: -1;
7
+ position: sticky;
8
+ top: -1px;
9
9
  }
10
10
 
11
11
  &--stuck {
@@ -38,4 +38,4 @@ function InternalNav() {
38
38
  updateInternalNavHeight();
39
39
  }
40
40
 
41
- export default InternalNav;
41
+ export default InternalNav;
@@ -1,5 +1,5 @@
1
1
  function ScrollSpy() {
2
- const internalNav = document.querySelector('.c-internal-nav');
2
+ const internalNav = document.querySelector('.c-internal-nav--sticky');
3
3
  const internalNavHeight = internalNav ? internalNav.offsetHeight : 0;
4
4
 
5
5
  const spies = Array.from(document.querySelectorAll('.c-scroll-spy'));
@@ -40,7 +40,7 @@ tagTitle: Range
40
40
  }) }}
41
41
 
42
42
  {{ internalNav({
43
- classes: 'u-sticky',
43
+ classes: 'c-internal-nav--sticky',
44
44
  title: 'Mastersizer range',
45
45
  links: [
46
46
  { link: '#overview', label: 'Overview' },