@masters-union/union-stack 0.3.7 → 0.3.8
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/dist/cdn/loader.v1.global.js +4 -2
- package/dist/cdn/loader.v1.global.js.map +1 -1
- package/dist/{chunk-M4COFGFO.cjs → chunk-ACQDEKCW.cjs} +3 -3
- package/dist/{chunk-M4COFGFO.cjs.map → chunk-ACQDEKCW.cjs.map} +1 -1
- package/dist/{chunk-J6UVDGJO.js → chunk-TNWAUSLA.js} +3 -3
- package/dist/{chunk-J6UVDGJO.js.map → chunk-TNWAUSLA.js.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/dist/picker.cjs +5 -2
- package/dist/picker.cjs.map +1 -1
- package/dist/picker.js +5 -2
- package/dist/picker.js.map +1 -1
- package/dist/react.cjs +2 -2
- package/dist/react.js +1 -1
- package/package.json +1 -1
package/dist/picker.js
CHANGED
|
@@ -129,6 +129,8 @@ var BASE_CSS = `
|
|
|
129
129
|
overflow: hidden;
|
|
130
130
|
animation: us-rise 240ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
131
131
|
}
|
|
132
|
+
/* Container is only a programmatic focus fallback \u2014 no visible focus ring. */
|
|
133
|
+
.us-picker:focus { outline: none; }
|
|
132
134
|
@keyframes us-rise {
|
|
133
135
|
from { opacity: 0; transform: translateY(8px) scale(0.985); }
|
|
134
136
|
to { opacity: 1; transform: translateY(0) scale(1); }
|
|
@@ -1147,6 +1149,7 @@ var Picker = class {
|
|
|
1147
1149
|
panel.setAttribute("role", "dialog");
|
|
1148
1150
|
panel.setAttribute("aria-modal", "true");
|
|
1149
1151
|
panel.setAttribute("aria-labelledby", titleId);
|
|
1152
|
+
panel.tabIndex = -1;
|
|
1150
1153
|
panel.addEventListener("keydown", (e) => {
|
|
1151
1154
|
if (e.key === "Escape" && !this.uploadStarted) {
|
|
1152
1155
|
e.preventDefault();
|
|
@@ -1224,8 +1227,8 @@ var Picker = class {
|
|
|
1224
1227
|
root.appendChild(panel);
|
|
1225
1228
|
(this.opts.container ?? document.body).appendChild(root);
|
|
1226
1229
|
this.$backdrop = root;
|
|
1227
|
-
const target = panel.querySelector('.us-source-tab[data-active="true"]') ??
|
|
1228
|
-
target
|
|
1230
|
+
const target = panel.querySelector('.us-source-tab[data-active="true"]') ?? panel;
|
|
1231
|
+
target.focus();
|
|
1229
1232
|
}
|
|
1230
1233
|
// Keeps Tab focus cycling within the modal (focus trap).
|
|
1231
1234
|
trapFocus(e) {
|