@nice-digital/nds-checkbox 1.3.7-alpha.0 → 2.0.2-alpha.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-digital/nds-checkbox",
3
- "version": "1.3.7-alpha.0",
3
+ "version": "2.0.2-alpha.0",
4
4
  "description": "Checkbox component for the NICE Design System",
5
5
  "author": "Warren Keith <warren.keith@nice.org.uk>",
6
6
  "homepage": "https://design-system.nice.org.uk/",
@@ -34,7 +34,7 @@
34
34
  "url": "https://github.com/nice-digital/nice-design-system/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@nice-digital/nds-core": "^1.3.5-alpha.0",
37
+ "@nice-digital/nds-core": "^2.0.2-alpha.0",
38
38
  "classnames": "^2.2.6",
39
39
  "prop-types": "^15.7.2"
40
40
  },
@@ -45,5 +45,5 @@
45
45
  "devDependencies": {
46
46
  "@babel/cli": "^7.5.0"
47
47
  },
48
- "gitHead": "0ddae81edebd757a52ca6a2838610049a83acebd"
48
+ "gitHead": "04839cc13ae0a0fbd0baeefff5996943285dafab"
49
49
  }
@@ -1,4 +1,4 @@
1
- @use "sass:math";
1
+ @use 'sass:math';
2
2
 
3
3
  @use '@nice-digital/nds-core/scss/colours';
4
4
  @use '@nice-digital/nds-core/scss/focus';
@@ -32,11 +32,11 @@ $checkbox-size: utils.rem(spacing.$large);
32
32
  margin-bottom: utils.rem(spacing.$x-small);
33
33
  padding: utils.rem(spacing.$x-small) 0;
34
34
 
35
+ // outside square
35
36
  &:before {
36
37
  background: transparent;
37
- border: utils.rem(spacing.$xx-small) solid colours.$nice-black;
38
+ border: utils.rem(spacing.$xx-small) solid colours.$checkbox;
38
39
  box-sizing: border-box;
39
- // outside square // stylelint-disable-line
40
40
  content: '';
41
41
  height: $checkbox-size;
42
42
  left: 0;
@@ -45,12 +45,12 @@ $checkbox-size: utils.rem(spacing.$large);
45
45
  width: $checkbox-size;
46
46
  }
47
47
 
48
+ // inside check / tick
48
49
  &:after {
49
50
  background: transparent;
50
51
  border: solid;
51
52
  border-top-color: transparent; // IE11 bug
52
53
  border-width: 0 0 utils.rem(spacing.$x-small) utils.rem(spacing.$x-small);
53
- // inside check / tick // stylelint-disable-line
54
54
  content: '';
55
55
  height: math.div(
56
56
  $checkbox-size,
@@ -94,7 +94,7 @@ $checkbox-size: utils.rem(spacing.$large);
94
94
  }
95
95
 
96
96
  &__hint {
97
- color: colours.$nice-dark-grey;
97
+ color: colours.$checkbox-hint;
98
98
  margin-bottom: utils.rem(spacing.$small);
99
99
  margin-top: utils.rem(spacing.$x-small);
100
100
  }
@@ -112,7 +112,7 @@ $checkbox-size: utils.rem(spacing.$large);
112
112
  }
113
113
 
114
114
  &:after {
115
- color: colours.$nice-black;
115
+ color: colours.$checkbox;
116
116
  }
117
117
  }
118
118
 
@@ -120,6 +120,7 @@ $checkbox-size: utils.rem(spacing.$large);
120
120
  display: inline-block;
121
121
  margin-right: utils.rem(spacing.$medium);
122
122
  vertical-align: top;
123
+
123
124
  input {
124
125
  margin-right: utils.rem(spacing.$x-small);
125
126
  }