@instructure/ui-options 10.2.2 → 10.2.3-pr-snapshot-1728305664020

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,6 +3,17 @@
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
+ ## [10.2.3-pr-snapshot-1728305664020](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.2.3-pr-snapshot-1728305664020) (2024-10-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-options:** subgroup titles in Options are not announced by TalkBack and iOS VoiceOver ([953fcb8](https://github.com/instructure/instructure-ui/commit/953fcb8a81cc4d75c77aee0e3f2bb7418bfd714e))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [10.2.2](https://github.com/instructure/instructure-ui/compare/v10.2.1...v10.2.2) (2024-09-13)
7
18
 
8
19
  **Note:** Version bump only for package @instructure/ui-options
@@ -67,10 +67,11 @@ let Options = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyles, g
67
67
  const _this$props3 = this.props,
68
68
  renderLabel = _this$props3.renderLabel,
69
69
  styles = _this$props3.styles;
70
+ const isAndroidOrIOS = /Android|iPhone|iPad/i.test(navigator.userAgent);
70
71
  return jsx("span", {
71
72
  id: this._labelId,
72
73
  role: "presentation",
73
- "aria-hidden": "true",
74
+ "aria-hidden": isAndroidOrIOS ? 'false' : 'true',
74
75
  css: styles === null || styles === void 0 ? void 0 : styles.label
75
76
  }, callRenderProp(renderLabel));
76
77
  }
@@ -74,10 +74,11 @@ let Options = exports.Options = (_dec = (0, _uiReactUtils.withDeterministicId)()
74
74
  const _this$props3 = this.props,
75
75
  renderLabel = _this$props3.renderLabel,
76
76
  styles = _this$props3.styles;
77
+ const isAndroidOrIOS = /Android|iPhone|iPad/i.test(navigator.userAgent);
77
78
  return (0, _emotion.jsx)("span", {
78
79
  id: this._labelId,
79
80
  role: "presentation",
80
- "aria-hidden": "true",
81
+ "aria-hidden": isAndroidOrIOS ? 'false' : 'true',
81
82
  css: styles === null || styles === void 0 ? void 0 : styles.label
82
83
  }, (0, _uiReactUtils.callRenderProp)(renderLabel));
83
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-options",
3
- "version": "10.2.2",
3
+ "version": "10.2.3-pr-snapshot-1728305664020",
4
4
  "description": "A view-only component for composing interactive lists and menus.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,21 +23,21 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "10.2.2",
27
- "@instructure/ui-color-utils": "10.2.2",
28
- "@instructure/ui-test-locator": "10.2.2",
29
- "@instructure/ui-test-utils": "10.2.2",
30
- "@instructure/ui-themes": "10.2.2"
26
+ "@instructure/ui-babel-preset": "10.2.3-pr-snapshot-1728305664020",
27
+ "@instructure/ui-color-utils": "10.2.3-pr-snapshot-1728305664020",
28
+ "@instructure/ui-test-locator": "10.2.3-pr-snapshot-1728305664020",
29
+ "@instructure/ui-test-utils": "10.2.3-pr-snapshot-1728305664020",
30
+ "@instructure/ui-themes": "10.2.3-pr-snapshot-1728305664020"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.24.5",
34
- "@instructure/emotion": "10.2.2",
35
- "@instructure/shared-types": "10.2.2",
36
- "@instructure/ui-icons": "10.2.2",
37
- "@instructure/ui-prop-types": "10.2.2",
38
- "@instructure/ui-react-utils": "10.2.2",
39
- "@instructure/ui-testable": "10.2.2",
40
- "@instructure/ui-view": "10.2.2",
34
+ "@instructure/emotion": "10.2.3-pr-snapshot-1728305664020",
35
+ "@instructure/shared-types": "10.2.3-pr-snapshot-1728305664020",
36
+ "@instructure/ui-icons": "10.2.3-pr-snapshot-1728305664020",
37
+ "@instructure/ui-prop-types": "10.2.3-pr-snapshot-1728305664020",
38
+ "@instructure/ui-react-utils": "10.2.3-pr-snapshot-1728305664020",
39
+ "@instructure/ui-testable": "10.2.3-pr-snapshot-1728305664020",
40
+ "@instructure/ui-view": "10.2.3-pr-snapshot-1728305664020",
41
41
  "prop-types": "^15.8.1"
42
42
  },
43
43
  "peerDependencies": {
@@ -104,11 +104,12 @@ class Options extends Component<OptionsProps> {
104
104
 
105
105
  renderLabel() {
106
106
  const { renderLabel, styles } = this.props
107
+ const isAndroidOrIOS = /Android|iPhone|iPad/i.test(navigator.userAgent)
107
108
  return (
108
109
  <span
109
110
  id={this._labelId}
110
111
  role="presentation"
111
- aria-hidden="true"
112
+ aria-hidden={isAndroidOrIOS ? 'false' : 'true'}
112
113
  css={styles?.label}
113
114
  >
114
115
  {callRenderProp(renderLabel)}