@instructure/ui-top-nav-bar 10.26.3 → 10.26.4
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 +11 -0
- package/es/TopNavBar/TopNavBarItem/index.js +6 -4
- package/lib/TopNavBar/TopNavBarItem/index.js +6 -4
- package/package.json +28 -28
- package/src/TopNavBar/TopNavBarItem/index.tsx +6 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TopNavBar/TopNavBarItem/index.d.ts.map +1 -1
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.26.4](https://github.com/instructure/instructure-ui/compare/v10.26.3...v10.26.4) (2025-11-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-top-nav-bar:** fix aria-expanded added twice when displaying menus/popups ([a212bb4](https://github.com/instructure/instructure-ui/commit/a212bb44499d4ffc387c66079334b77ea6d7e66e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [10.26.3](https://github.com/instructure/instructure-ui/compare/v10.26.2...v10.26.3) (2025-11-19)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @instructure/ui-top-nav-bar
|
|
@@ -474,6 +474,9 @@ let TopNavBarItem = (_dec = withDeterministicId(), _dec2 = withStyle(generateSty
|
|
|
474
474
|
withArrow: false,
|
|
475
475
|
minWidth: ((_renderSubmenu$props2 = renderSubmenu.props) === null || _renderSubmenu$props2 === void 0 ? void 0 : _renderSubmenu$props2.minWidth) || '18.5rem',
|
|
476
476
|
maxHeight: ((_renderSubmenu$props3 = renderSubmenu.props) === null || _renderSubmenu$props3 === void 0 ? void 0 : _renderSubmenu$props3.maxHeight) || `calc(100vh - 10rem)`,
|
|
477
|
+
// this is needed because the trigger is not a button. `aria-expanded`
|
|
478
|
+
// is set on `get itemProps()`
|
|
479
|
+
shouldSetAriaExpanded: false,
|
|
477
480
|
...(status === 'disabled' && {
|
|
478
481
|
disabled: true,
|
|
479
482
|
show: false,
|
|
@@ -523,10 +526,9 @@ let TopNavBarItem = (_dec = withDeterministicId(), _dec2 = withStyle(generateSty
|
|
|
523
526
|
}
|
|
524
527
|
}),
|
|
525
528
|
isShowingContent: this.state.isPopoverOpen,
|
|
526
|
-
//
|
|
527
|
-
//
|
|
528
|
-
|
|
529
|
-
'aria-expanded': void 0
|
|
529
|
+
// this is needed because the trigger is not a button. `aria-expanded`
|
|
530
|
+
// is set on `get itemProps()`
|
|
531
|
+
shouldSetAriaExpanded: false
|
|
530
532
|
};
|
|
531
533
|
return _jsx(Popover, {
|
|
532
534
|
...popoverProps,
|
|
@@ -486,6 +486,9 @@ let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.wit
|
|
|
486
486
|
withArrow: false,
|
|
487
487
|
minWidth: ((_renderSubmenu$props2 = renderSubmenu.props) === null || _renderSubmenu$props2 === void 0 ? void 0 : _renderSubmenu$props2.minWidth) || '18.5rem',
|
|
488
488
|
maxHeight: ((_renderSubmenu$props3 = renderSubmenu.props) === null || _renderSubmenu$props3 === void 0 ? void 0 : _renderSubmenu$props3.maxHeight) || `calc(100vh - 10rem)`,
|
|
489
|
+
// this is needed because the trigger is not a button. `aria-expanded`
|
|
490
|
+
// is set on `get itemProps()`
|
|
491
|
+
shouldSetAriaExpanded: false,
|
|
489
492
|
...(status === 'disabled' && {
|
|
490
493
|
disabled: true,
|
|
491
494
|
show: false,
|
|
@@ -535,10 +538,9 @@ let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.wit
|
|
|
535
538
|
}
|
|
536
539
|
}),
|
|
537
540
|
isShowingContent: this.state.isPopoverOpen,
|
|
538
|
-
//
|
|
539
|
-
//
|
|
540
|
-
|
|
541
|
-
'aria-expanded': void 0
|
|
541
|
+
// this is needed because the trigger is not a button. `aria-expanded`
|
|
542
|
+
// is set on `get itemProps()`
|
|
543
|
+
shouldSetAriaExpanded: false
|
|
542
544
|
};
|
|
543
545
|
return (0, _jsxRuntime.jsx)(_Popover.Popover, {
|
|
544
546
|
...popoverProps,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-top-nav-bar",
|
|
3
|
-
"version": "10.26.
|
|
3
|
+
"version": "10.26.4",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,36 +24,36 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.27.6",
|
|
27
|
-
"@instructure/console": "10.26.
|
|
28
|
-
"@instructure/emotion": "10.26.
|
|
29
|
-
"@instructure/shared-types": "10.26.
|
|
30
|
-
"@instructure/ui-a11y-content": "10.26.
|
|
31
|
-
"@instructure/ui-avatar": "10.26.
|
|
32
|
-
"@instructure/ui-breadcrumb": "10.26.
|
|
33
|
-
"@instructure/ui-buttons": "10.26.
|
|
34
|
-
"@instructure/ui-dialog": "10.26.
|
|
35
|
-
"@instructure/ui-dom-utils": "10.26.
|
|
36
|
-
"@instructure/ui-drilldown": "10.26.
|
|
37
|
-
"@instructure/ui-icons": "10.26.
|
|
38
|
-
"@instructure/ui-link": "10.26.
|
|
39
|
-
"@instructure/ui-popover": "10.26.
|
|
40
|
-
"@instructure/ui-prop-types": "10.26.
|
|
41
|
-
"@instructure/ui-react-utils": "10.26.
|
|
42
|
-
"@instructure/ui-responsive": "10.26.
|
|
43
|
-
"@instructure/ui-testable": "10.26.
|
|
44
|
-
"@instructure/ui-tooltip": "10.26.
|
|
45
|
-
"@instructure/ui-tray": "10.26.
|
|
46
|
-
"@instructure/ui-truncate-list": "10.26.
|
|
47
|
-
"@instructure/ui-utils": "10.26.
|
|
48
|
-
"@instructure/ui-view": "10.26.
|
|
27
|
+
"@instructure/console": "10.26.4",
|
|
28
|
+
"@instructure/emotion": "10.26.4",
|
|
29
|
+
"@instructure/shared-types": "10.26.4",
|
|
30
|
+
"@instructure/ui-a11y-content": "10.26.4",
|
|
31
|
+
"@instructure/ui-avatar": "10.26.4",
|
|
32
|
+
"@instructure/ui-breadcrumb": "10.26.4",
|
|
33
|
+
"@instructure/ui-buttons": "10.26.4",
|
|
34
|
+
"@instructure/ui-dialog": "10.26.4",
|
|
35
|
+
"@instructure/ui-dom-utils": "10.26.4",
|
|
36
|
+
"@instructure/ui-drilldown": "10.26.4",
|
|
37
|
+
"@instructure/ui-icons": "10.26.4",
|
|
38
|
+
"@instructure/ui-link": "10.26.4",
|
|
39
|
+
"@instructure/ui-popover": "10.26.4",
|
|
40
|
+
"@instructure/ui-prop-types": "10.26.4",
|
|
41
|
+
"@instructure/ui-react-utils": "10.26.4",
|
|
42
|
+
"@instructure/ui-responsive": "10.26.4",
|
|
43
|
+
"@instructure/ui-testable": "10.26.4",
|
|
44
|
+
"@instructure/ui-tooltip": "10.26.4",
|
|
45
|
+
"@instructure/ui-tray": "10.26.4",
|
|
46
|
+
"@instructure/ui-truncate-list": "10.26.4",
|
|
47
|
+
"@instructure/ui-utils": "10.26.4",
|
|
48
|
+
"@instructure/ui-view": "10.26.4",
|
|
49
49
|
"prop-types": "^15.8.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@instructure/ui-axe-check": "10.26.
|
|
53
|
-
"@instructure/ui-babel-preset": "10.26.
|
|
54
|
-
"@instructure/ui-color-utils": "10.26.
|
|
55
|
-
"@instructure/ui-scripts": "10.26.
|
|
56
|
-
"@instructure/ui-themes": "10.26.
|
|
52
|
+
"@instructure/ui-axe-check": "10.26.4",
|
|
53
|
+
"@instructure/ui-babel-preset": "10.26.4",
|
|
54
|
+
"@instructure/ui-color-utils": "10.26.4",
|
|
55
|
+
"@instructure/ui-scripts": "10.26.4",
|
|
56
|
+
"@instructure/ui-themes": "10.26.4",
|
|
57
57
|
"@testing-library/jest-dom": "^6.6.3",
|
|
58
58
|
"@testing-library/react": "^16.0.1",
|
|
59
59
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -639,7 +639,9 @@ class TopNavBarItem extends Component<TopNavBarItemProps, TopNavBarItemState> {
|
|
|
639
639
|
withArrow: false,
|
|
640
640
|
minWidth: renderSubmenu.props?.minWidth || '18.5rem',
|
|
641
641
|
maxHeight: renderSubmenu.props?.maxHeight || `calc(100vh - 10rem)`,
|
|
642
|
-
|
|
642
|
+
// this is needed because the trigger is not a button. `aria-expanded`
|
|
643
|
+
// is set on `get itemProps()`
|
|
644
|
+
shouldSetAriaExpanded: false,
|
|
643
645
|
...(status === 'disabled' && {
|
|
644
646
|
disabled: true,
|
|
645
647
|
show: false,
|
|
@@ -695,10 +697,9 @@ class TopNavBarItem extends Component<TopNavBarItemProps, TopNavBarItemState> {
|
|
|
695
697
|
}
|
|
696
698
|
),
|
|
697
699
|
isShowingContent: this.state.isPopoverOpen,
|
|
698
|
-
//
|
|
699
|
-
//
|
|
700
|
-
|
|
701
|
-
'aria-expanded': undefined
|
|
700
|
+
// this is needed because the trigger is not a button. `aria-expanded`
|
|
701
|
+
// is set on `get itemProps()`
|
|
702
|
+
shouldSetAriaExpanded: false
|
|
702
703
|
}
|
|
703
704
|
|
|
704
705
|
return <Popover {...popoverProps}>{customPopoverConfig.children}</Popover>
|