@primer/view-components 0.1.9-rc.167445f8 → 0.1.9-rc.18246342
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.
|
@@ -14,11 +14,11 @@ import '@oddbird/popover-polyfill';
|
|
|
14
14
|
const menuItemSelector = '[role="menuitem"],[role="menuitemcheckbox"],[role="menuitemradio"]';
|
|
15
15
|
const popoverSelector = (() => {
|
|
16
16
|
try {
|
|
17
|
-
document.querySelector(':
|
|
18
|
-
return ':
|
|
17
|
+
document.querySelector(':open');
|
|
18
|
+
return ':open';
|
|
19
19
|
}
|
|
20
20
|
catch (_a) {
|
|
21
|
-
return '.\\:
|
|
21
|
+
return '.\\:open';
|
|
22
22
|
}
|
|
23
23
|
})();
|
|
24
24
|
const getMnemonicFor = (item) => { var _a; return (_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim()[0].toLowerCase(); };
|
|
@@ -132,7 +132,9 @@ export default class FocusGroupElement extends HTMLElement {
|
|
|
132
132
|
if ((el === null || el === void 0 ? void 0 : el.popover) === 'auto') {
|
|
133
133
|
el.showPopover();
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
else {
|
|
136
|
+
el = (el === null || el === void 0 ? void 0 : el.parentElement) || null;
|
|
137
|
+
}
|
|
136
138
|
} while (el);
|
|
137
139
|
}
|
|
138
140
|
focusEl === null || focusEl === void 0 ? void 0 : focusEl.focus();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/view-components",
|
|
3
|
-
"version": "0.1.9-rc.
|
|
3
|
+
"version": "0.1.9-rc.18246342",
|
|
4
4
|
"description": "ViewComponents for the Primer Design System",
|
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
|
6
6
|
"module": "app/components/primer/primer.js",
|