fizzy icon indicating copy to clipboard operation
fizzy copied to clipboard

Allow document to be user scalable for the sake of a11y

Open andyra opened this issue 1 month ago • 1 comments

Removes user-scalable=no from the viewport meta, which will allow people to scale as needed.

This was originally added in #1613 as a way to ensure that the screen doesn't zoom automatically in mobile Safari when text input sizes are < 16px. The aforementioned PR also forces the text size to be 16px on mobile Safari, though, so the user-scalable attribute is redundant and safe to remove.

https://app.fizzy.do/5986089/cards/3487

andyra avatar Dec 17 '25 20:12 andyra

I'd say ideally we allow zooming on the web but don't in the native app's webviews and maybe PWAs.

If we don't allow zooming at all, one thing that would mitigate is allow zooming on images. On mobile it's often useless to expand images because it doesn't make them any bigger 👇

Capture d’écran   2025-12-18 à 11 26 03

Whatever we do, I think we should try to support the OS' dynamic type size setting. Now on iOS the only thing I've found is using -apple-system-xxx For example, setting font: -apple-system-body on the body picks it up 👇

System text size setting Production Using font: -apple-system-body on the body
IMG_9723 IMG_9725 IMG_9724

Maybe that's a case for something like

@layer platform {
  [data-platform~=mobile] {
    font: -apple-system-body;
  }
}

adjogima avatar Dec 18 '25 10:12 adjogima