@jonmilner/ui 0.1.1 → 0.1.2

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.
@@ -22,6 +22,7 @@ function g({ title: a, description: o, size: c = "med", position: h = "fixed", m
22
22
  position: "fixed",
23
23
  zIndex: "modal"
24
24
  }) }), /* @__PURE__ */ p(m.Popup, {
25
+ "aria-modal": !0,
25
26
  ...j,
26
27
  render: /* @__PURE__ */ f(n, {
27
28
  zIndex: "modal",
@@ -73,7 +73,7 @@ const [open, setOpen] = useState(false);
73
73
 
74
74
  ## Accessibility
75
75
 
76
- - The trigger has `aria-haspopup="dialog"` and `aria-expanded`. The popup is `role="alertdialog"`, labelled by the title and described by the description.
76
+ - The trigger has `aria-haspopup="dialog"` and `aria-expanded`. The popup is `role="alertdialog"` with `aria-modal`, labelled by the title and described by the description.
77
77
  - Opening moves focus to Cancel; Tab and Shift+Tab cycle between the two buttons, and the page behind is inert. Esc or Cancel closes it, and focus returns to the trigger. A click outside does nothing.
78
78
  - The danger confirm button is told apart by its label as well as its color.
79
79
  - Under reduced motion the panel only fades.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "./manifest.schema.json",
3
3
  "package": "@jonmilner/ui",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "components": [
6
6
  {
7
7
  "name": "AlertDialog",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jonmilner/ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "files": [
5
5
  "dist",
6
6
  "THIRD_PARTY_NOTICES.md"