@ons/design-system 46.1.1 → 46.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 ONS Digital
3
+ Copyright (c) 2018 Crown Copyright (Office for National Statistics)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  &__subject {
15
- margin: 0;
15
+ margin: 0 0 0.2rem;
16
16
  }
17
17
 
18
18
  &__metadata {
@@ -33,9 +33,10 @@
33
33
  color: $color-text;
34
34
  display: inline-block;
35
35
  height: 2.5rem;
36
+ line-height: 2.3rem;
36
37
  margin: 0 0.1rem 0 0;
37
38
  overflow: visible;
38
- padding: 0.5rem 1rem;
39
+ padding: 0 1rem;
39
40
  position: relative;
40
41
  text-decoration: underline;
41
42
 
@@ -27,14 +27,14 @@ export default class TimeoutModal {
27
27
  startTimeout() {
28
28
  clearTimeout(this.showModalTimeout);
29
29
  if (this.initialExpiryTime) {
30
- this.expiryTimeInMilliseconds = this.timeout.convertTimeToMilliSeconds(this.initialExpiryTime);
30
+ this.totalMilliseconds = this.timeout.expiryTimeInMilliseconds;
31
31
  } else {
32
32
  // For demo purposes
33
- this.expiryTimeInMilliseconds = 60000;
33
+ this.totalMilliseconds = 60000;
34
34
  }
35
35
  this.showModalTimeout = setTimeout(
36
36
  this.openModalAndStartCountdown.bind(this),
37
- this.expiryTimeInMilliseconds - this.modalVisibleInMilliseconds,
37
+ this.totalMilliseconds - this.modalVisibleInMilliseconds,
38
38
  );
39
39
  }
40
40