@dloizides/ui-feedback 1.16.1 → 1.16.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.
package/dist/index.js CHANGED
@@ -64,6 +64,7 @@ var FEEDBACK_TEST_IDS = {
64
64
  errorBoundary: "error-boundary",
65
65
  progressBar: "progress-bar"
66
66
  };
67
+ var MIN_TOUCH_TARGET = 44;
67
68
  var WELL_SIZE = 56;
68
69
  var WELL_MARGIN_BOTTOM = 16;
69
70
  var WELL_TINT_OPACITY = 0.12;
@@ -466,6 +467,7 @@ var styles6 = reactNative.StyleSheet.create({
466
467
  paddingHorizontal: 20,
467
468
  borderRadius: 6,
468
469
  minWidth: 80,
470
+ minHeight: MIN_TOUCH_TARGET,
469
471
  alignItems: "center",
470
472
  justifyContent: "center"
471
473
  },
@@ -494,6 +496,8 @@ var ConfirmDialog = ({
494
496
  destructive = false
495
497
  }) => {
496
498
  const { theme, t } = useFeedbackUi();
499
+ const titleId = react.useId();
500
+ const innerDialogRole = reactNative.Platform.OS === "web" ? void 0 : "dialog";
497
501
  const colorStyles = react.useMemo(
498
502
  () => ({
499
503
  dialog: { backgroundColor: theme.colors.surfaceElevated },
@@ -517,6 +521,7 @@ var ConfirmDialog = ({
517
521
  reactNative.Modal,
518
522
  {
519
523
  transparent: true,
524
+ "aria-labelledby": titleId,
520
525
  animationType: "fade",
521
526
  visible,
522
527
  onRequestClose: onCancel,
@@ -524,11 +529,11 @@ var ConfirmDialog = ({
524
529
  reactNative.View,
525
530
  {
526
531
  accessibilityViewIsModal: true,
527
- "aria-label": title,
528
- role: "dialog",
532
+ "aria-label": innerDialogRole === void 0 ? void 0 : title,
533
+ role: innerDialogRole,
529
534
  style: [styles6.dialog, colorStyles.dialog],
530
535
  children: [
531
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.title, colorStyles.title], children: title }),
536
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { nativeID: titleId, style: [styles6.title, colorStyles.title], children: title }),
532
537
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles6.message, colorStyles.message], children: message }),
533
538
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles6.buttonRow, children: [
534
539
  /* @__PURE__ */ jsxRuntime.jsx(