@instructure/ui-drilldown 10.25.1-snapshot-9 → 10.25.1-snapshot-11

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
- ## [10.25.1-snapshot-9](https://github.com/instructure/instructure-ui/compare/v10.25.0...v10.25.1-snapshot-9) (2025-10-01)
6
+ ## [10.25.1-snapshot-11](https://github.com/instructure/instructure-ui/compare/v10.25.0...v10.25.1-snapshot-11) (2025-10-01)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-drilldown
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-utils,ui-drilldown:** make NDVA read options in Drilldown.Group correctly in Firefox ([994f158](https://github.com/instructure/instructure-ui/commit/994f15887ff7e1112208031514aa7e0ae134231b))
9
12
 
10
13
 
11
14
 
@@ -27,6 +27,8 @@ import { Component } from 'react';
27
27
  import { withStyle } from '@instructure/emotion';
28
28
  import { optionsThemeGenerator } from '@instructure/ui-options';
29
29
  import { propTypes, allowedProps } from './props';
30
+ import { isMac, isFirefox } from '@instructure/ui-utils';
31
+
30
32
  /**
31
33
  ---
32
34
  parent: Drilldown
@@ -45,7 +47,9 @@ let DrilldownGroup = (_dec = withStyle(null, optionsThemeGenerator), _dec(_class
45
47
  }, _DrilldownGroup.displayName = "DrilldownGroup", _DrilldownGroup.componentId = 'Drilldown.Group', _DrilldownGroup.propTypes = propTypes, _DrilldownGroup.allowedProps = allowedProps, _DrilldownGroup.defaultProps = {
46
48
  disabled: false,
47
49
  withoutSeparators: false,
48
- role: 'group'
50
+ // Firefox with NVDA does not read Drilldown.Group with role="group" correctly
51
+ // but setting role="menu" on all other platforms results in Drilldown.Group label not being read
52
+ role: !isMac() && isFirefox() ? 'menu' : 'group'
49
53
  }, _DrilldownGroup)) || _class);
50
54
  export default DrilldownGroup;
51
55
  export { DrilldownGroup };
@@ -8,6 +8,7 @@ var _react = require("react");
8
8
  var _emotion = require("@instructure/emotion");
9
9
  var _uiOptions = require("@instructure/ui-options");
10
10
  var _props = require("./props");
11
+ var _uiUtils = require("@instructure/ui-utils");
11
12
  var _dec, _class, _DrilldownGroup;
12
13
  /*
13
14
  * The MIT License (MIT)
@@ -50,6 +51,8 @@ let DrilldownGroup = exports.DrilldownGroup = (_dec = (0, _emotion.withStyle)(nu
50
51
  }, _DrilldownGroup.displayName = "DrilldownGroup", _DrilldownGroup.componentId = 'Drilldown.Group', _DrilldownGroup.propTypes = _props.propTypes, _DrilldownGroup.allowedProps = _props.allowedProps, _DrilldownGroup.defaultProps = {
51
52
  disabled: false,
52
53
  withoutSeparators: false,
53
- role: 'group'
54
+ // Firefox with NVDA does not read Drilldown.Group with role="group" correctly
55
+ // but setting role="menu" on all other platforms results in Drilldown.Group label not being read
56
+ role: !(0, _uiUtils.isMac)() && (0, _uiUtils.isFirefox)() ? 'menu' : 'group'
54
57
  }, _DrilldownGroup)) || _class);
55
58
  var _default = exports.default = DrilldownGroup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-drilldown",
3
- "version": "10.25.1-snapshot-9",
3
+ "version": "10.25.1-snapshot-11",
4
4
  "description": "A drilldown menu 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.27.6",
27
- "@instructure/console": "10.25.1-snapshot-9",
28
- "@instructure/emotion": "10.25.1-snapshot-9",
29
- "@instructure/shared-types": "10.25.1-snapshot-9",
30
- "@instructure/ui-dom-utils": "10.25.1-snapshot-9",
31
- "@instructure/ui-icons": "10.25.1-snapshot-9",
32
- "@instructure/ui-options": "10.25.1-snapshot-9",
33
- "@instructure/ui-popover": "10.25.1-snapshot-9",
34
- "@instructure/ui-position": "10.25.1-snapshot-9",
35
- "@instructure/ui-prop-types": "10.25.1-snapshot-9",
36
- "@instructure/ui-react-utils": "10.25.1-snapshot-9",
37
- "@instructure/ui-selectable": "10.25.1-snapshot-9",
38
- "@instructure/ui-testable": "10.25.1-snapshot-9",
39
- "@instructure/ui-utils": "10.25.1-snapshot-9",
40
- "@instructure/ui-view": "10.25.1-snapshot-9",
27
+ "@instructure/console": "10.25.1-snapshot-11",
28
+ "@instructure/emotion": "10.25.1-snapshot-11",
29
+ "@instructure/shared-types": "10.25.1-snapshot-11",
30
+ "@instructure/ui-dom-utils": "10.25.1-snapshot-11",
31
+ "@instructure/ui-icons": "10.25.1-snapshot-11",
32
+ "@instructure/ui-options": "10.25.1-snapshot-11",
33
+ "@instructure/ui-popover": "10.25.1-snapshot-11",
34
+ "@instructure/ui-position": "10.25.1-snapshot-11",
35
+ "@instructure/ui-prop-types": "10.25.1-snapshot-11",
36
+ "@instructure/ui-react-utils": "10.25.1-snapshot-11",
37
+ "@instructure/ui-selectable": "10.25.1-snapshot-11",
38
+ "@instructure/ui-testable": "10.25.1-snapshot-11",
39
+ "@instructure/ui-utils": "10.25.1-snapshot-11",
40
+ "@instructure/ui-view": "10.25.1-snapshot-11",
41
41
  "prop-types": "^15.8.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@instructure/ui-axe-check": "10.25.1-snapshot-9",
45
- "@instructure/ui-babel-preset": "10.25.1-snapshot-9",
46
- "@instructure/ui-color-utils": "10.25.1-snapshot-9",
47
- "@instructure/ui-scripts": "10.25.1-snapshot-9",
48
- "@instructure/ui-themes": "10.25.1-snapshot-9",
44
+ "@instructure/ui-axe-check": "10.25.1-snapshot-11",
45
+ "@instructure/ui-babel-preset": "10.25.1-snapshot-11",
46
+ "@instructure/ui-color-utils": "10.25.1-snapshot-11",
47
+ "@instructure/ui-scripts": "10.25.1-snapshot-11",
48
+ "@instructure/ui-themes": "10.25.1-snapshot-11",
49
49
  "@testing-library/jest-dom": "^6.6.3",
50
50
  "@testing-library/react": "^16.0.1",
51
51
  "@testing-library/user-event": "^14.6.1",
@@ -29,6 +29,7 @@ import { optionsThemeGenerator } from '@instructure/ui-options'
29
29
 
30
30
  import { propTypes, allowedProps } from './props'
31
31
  import type { DrilldownGroupProps } from './props'
32
+ import { isMac, isFirefox } from '@instructure/ui-utils'
32
33
 
33
34
  /**
34
35
  ---
@@ -48,7 +49,9 @@ class DrilldownGroup extends Component<DrilldownGroupProps> {
48
49
  static defaultProps = {
49
50
  disabled: false,
50
51
  withoutSeparators: false,
51
- role: 'group'
52
+ // Firefox with NVDA does not read Drilldown.Group with role="group" correctly
53
+ // but setting role="menu" on all other platforms results in Drilldown.Group label not being read
54
+ role: !isMac() && isFirefox() ? 'menu' : 'group'
52
55
  }
53
56
 
54
57
  render() {