@instructure/ui-checkbox 8.46.2-snapshot-1 → 8.46.2-snapshot-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/CHANGELOG.md CHANGED
@@ -3,9 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [8.46.2-snapshot-1](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-1) (2023-10-16)
6
+ ## [8.46.2-snapshot-2](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-2) (2023-10-17)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-checkbox
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-checkbox,ui-spinner:** remove hover highlight from disabled checkbox ([3fe755f](https://github.com/instructure/instructure-ui/commit/3fe755f65127e3bd18a7ff2a2d974b386ab831b0))
9
12
 
10
13
 
11
14
 
@@ -90,7 +90,7 @@ let Checkbox = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, n
90
90
  });
91
91
  };
92
92
  this.handleMouseOver = () => {
93
- this.setState({
93
+ !this.props.disabled && this.setState({
94
94
  hovered: true
95
95
  });
96
96
  };
@@ -111,7 +111,7 @@ let Checkbox = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 =
111
111
  });
112
112
  };
113
113
  this.handleMouseOver = () => {
114
- this.setState({
114
+ !this.props.disabled && this.setState({
115
115
  hovered: true
116
116
  });
117
117
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-checkbox",
3
- "version": "8.46.2-snapshot-1",
3
+ "version": "8.46.2-snapshot-2",
4
4
  "description": " styled HTML input type='checkbox' component.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,28 +24,28 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.22.15",
27
- "@instructure/console": "8.46.2-snapshot-1",
28
- "@instructure/emotion": "8.46.2-snapshot-1",
29
- "@instructure/shared-types": "8.46.2-snapshot-1",
30
- "@instructure/ui-dom-utils": "8.46.2-snapshot-1",
31
- "@instructure/ui-form-field": "8.46.2-snapshot-1",
32
- "@instructure/ui-icons": "8.46.2-snapshot-1",
33
- "@instructure/ui-prop-types": "8.46.2-snapshot-1",
34
- "@instructure/ui-react-utils": "8.46.2-snapshot-1",
35
- "@instructure/ui-svg-images": "8.46.2-snapshot-1",
36
- "@instructure/ui-testable": "8.46.2-snapshot-1",
37
- "@instructure/ui-utils": "8.46.2-snapshot-1",
38
- "@instructure/ui-view": "8.46.2-snapshot-1",
39
- "@instructure/uid": "8.46.2-snapshot-1",
27
+ "@instructure/console": "8.46.2-snapshot-2",
28
+ "@instructure/emotion": "8.46.2-snapshot-2",
29
+ "@instructure/shared-types": "8.46.2-snapshot-2",
30
+ "@instructure/ui-dom-utils": "8.46.2-snapshot-2",
31
+ "@instructure/ui-form-field": "8.46.2-snapshot-2",
32
+ "@instructure/ui-icons": "8.46.2-snapshot-2",
33
+ "@instructure/ui-prop-types": "8.46.2-snapshot-2",
34
+ "@instructure/ui-react-utils": "8.46.2-snapshot-2",
35
+ "@instructure/ui-svg-images": "8.46.2-snapshot-2",
36
+ "@instructure/ui-testable": "8.46.2-snapshot-2",
37
+ "@instructure/ui-utils": "8.46.2-snapshot-2",
38
+ "@instructure/ui-view": "8.46.2-snapshot-2",
39
+ "@instructure/uid": "8.46.2-snapshot-2",
40
40
  "keycode": "^2.2.1",
41
41
  "prop-types": "^15.8.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@instructure/ui-axe-check": "8.46.2-snapshot-1",
45
- "@instructure/ui-babel-preset": "8.46.2-snapshot-1",
46
- "@instructure/ui-color-utils": "8.46.2-snapshot-1",
47
- "@instructure/ui-test-utils": "8.46.2-snapshot-1",
48
- "@instructure/ui-themes": "8.46.2-snapshot-1",
44
+ "@instructure/ui-axe-check": "8.46.2-snapshot-2",
45
+ "@instructure/ui-babel-preset": "8.46.2-snapshot-2",
46
+ "@instructure/ui-color-utils": "8.46.2-snapshot-2",
47
+ "@instructure/ui-test-utils": "8.46.2-snapshot-2",
48
+ "@instructure/ui-themes": "8.46.2-snapshot-2",
49
49
  "@testing-library/jest-dom": "^5.17.0",
50
50
  "@testing-library/react": "^14.0.0",
51
51
  "@testing-library/user-event": "^14.4.3"
@@ -156,9 +156,10 @@ class Checkbox extends Component<CheckboxProps, CheckboxState> {
156
156
  }
157
157
 
158
158
  handleMouseOver = () => {
159
- this.setState({
160
- hovered: true
161
- })
159
+ !this.props.disabled &&
160
+ this.setState({
161
+ hovered: true
162
+ })
162
163
  }
163
164
 
164
165
  handleMouseOut = () => {