@wistia/ui 1.11.0 → 1.11.1-beta.d3e77937.ffa0c74

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
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v1.11.0
3
+ * @license @wistia/ui v1.11.1-beta.d3e77937.ffa0c74
4
4
  *
5
5
  * Copyright (c) 2024-2026, Wistia, Inc. and its affiliates.
6
6
  *
@@ -9401,6 +9401,23 @@ const inputShellCss = css`
9401
9401
  font-weight: var(--wui-input-font-weight);
9402
9402
  color: var(--wui-input-color-text);
9403
9403
 
9404
+ /*
9405
+ * Mobile Safari zooms the page whenever a focused form control computes under
9406
+ * 16px. Our inputs use 14px (\`--wui-typography-body-3-font-size\`) by default,
9407
+ * so tapping one scales the whole interface on touch devices. Floor the font
9408
+ * size to 16px on coarse pointers to suppress the zoom while keeping the
9409
+ * designed size everywhere else. \`max()\` guards against a consumer that sets a
9410
+ * larger \`--wui-input-font-size\` — we never shrink below the token value.
9411
+ *
9412
+ * \`any-pointer: coarse\` (not \`pointer: coarse\`): an iPad with a Magic Keyboard
9413
+ * reports a fine PRIMARY pointer but still has a zooming touchscreen. Avoid
9414
+ * \`user-scalable=no\`/\`maximum-scale=1\`, which disable pinch-to-zoom and fail
9415
+ * WCAG 1.4.4.
9416
+ */
9417
+ @media (any-pointer: coarse) {
9418
+ font-size: max(16px, var(--wui-input-font-size));
9419
+ }
9420
+
9404
9421
  &:focus,
9405
9422
  &[aria-expanded='true'] {
9406
9423
  outline-width: 2px;