Skip to content

core, flows: drop maximum-scale=1 from viewport meta - #23261

Merged
GirlBossRush merged 1 commit into
mainfrom
issue-23048-web-flow-login-pages-disable-pinch-zoom
Jun 22, 2026
Merged

GirlBossRush merged 1 commit into
mainfrom
issue-23048-web-flow-login-pages-disable-pinch-zoom

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

Drops maximum-scale=1 from the viewport meta tag in the two Django
templates that emit it for flow and interface pages:

  • authentik/core/templates/base/skeleton.html, the shared base every
    in-app interface (admin, user, flow, rac, login, and the API
    browser) extends via {% extends "base/skeleton.html" %}.
  • authentik/flows/templates/if/flow-sfe.html, the simple flow-executor
    fallback page that does not inherit from the skeleton.

Both now emit:

<meta name="viewport" content="width=device-width, initial-scale=1">

user-scalable=no was not present on either tag, so nothing else needed
to change.

Why is this change needed?

maximum-scale=1 blocks pinch-to-zoom on touch devices and prevents
browser zoom for low-vision users. That fails WCAG 2.1 SC 1.4.4 (Resize
Text) and is a Section 508 blocker, and an axe-core scan flags it as
meta-viewport (impact: moderate) on every flow page.

The companion findings from the same audit (unlabelled identification
stage <input>s, and an aria-required attribute on a <label>) are
tracked under #22389 and stay out of this PR so the two efforts do not
collide.

Linked issues

Closes #23048
Refs #22389

Disclosure

Triaged and authored end-to-end by an agent running in a sandbox against
goauthentik/authentik@main.

The shared HTML head on flow, login, and every other in-app interface
page pinned `maximum-scale=1` on the viewport meta tag. That blocks
pinch-to-zoom on touch devices and overrides browser zoom for low-vision
users, both of which fail WCAG 2.1 SC 1.4.4 (Resize Text) and trigger a
Section 508 blocker.

Two templates emit the tag:

- `authentik/core/templates/base/skeleton.html`, the shared base every
  in-app interface (admin, user, flow, RAC, login, API browser) extends.
- `authentik/flows/templates/if/flow-sfe.html`, the simple flow-executor
  fallback page.

Both now drop `maximum-scale=1`. `user-scalable=no` was not present on
either tag, so the rest of the viewport directives stay untouched.

Closes #23048
Refs #22389

Co-Authored-By: Agent (authentik-i23048-given-preliminary-granite) <[email protected]>
@GirlBossRush
GirlBossRush requested a review from a team as a code owner June 22, 2026 15:22
@netlify

netlify Bot commented Jun 22, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 7689d98
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a39533aae307d000893aaa7
😎 Deploy Preview https://deploy-preview-23261--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@GirlBossRush GirlBossRush self-assigned this Jun 22, 2026
@GirlBossRush
GirlBossRush requested a review from BeryJu June 22, 2026 15:24
@GirlBossRush GirlBossRush added a11y Features or issues related to accessibility area:frontend Features or issues related to the browser, TypeScript, Node.js, etc area:backend labels Jun 22, 2026
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Jun 22, 2026
@GirlBossRush
GirlBossRush enabled auto-merge (squash) June 22, 2026 15:25
@codecov

codecov Bot commented Jun 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.20%. Comparing base (870cc1a) to head (7689d98).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23261      +/-   ##
==========================================
- Coverage   93.28%   93.20%   -0.08%     
==========================================
  Files        1036     1036              
  Lines       60421    60421              
  Branches      400      400              
==========================================
- Hits        56364    56318      -46     
- Misses       4057     4103      +46     
Flag Coverage Δ
conformance 36.36% <ø> (-0.06%) ⬇️
e2e 41.65% <ø> (+<0.01%) ⬆️
integration 32.38% <ø> (-0.49%) ⬇️
rust 0.00% <ø> (ø)
unit 92.21% <ø> (+<0.01%) ⬆️
unit-migrate 92.24% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@GirlBossRush
GirlBossRush merged commit fdc5048 into main Jun 22, 2026
111 of 112 checks passed
@GirlBossRush
GirlBossRush deleted the issue-23048-web-flow-login-pages-disable-pinch-zoom branch June 22, 2026 16:05
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Jun 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-7689d98c7d8426e62a5419b2e7ea50ec084aa2c6
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-7689d98c7d8426e62a5419b2e7ea50ec084aa2c6

Afterwards, run the upgrade commands from the latest release notes.

kensternberg-authentik added a commit that referenced this pull request Jun 22, 2026
* main: (30 commits)
  core, flows: drop maximum-scale=1 from viewport meta (#23261)
  web: bump vite from 8.0.12 to 8.0.16 in /web (#23129)
  web: bump the storybook group across 1 directory with 4 updates (#23246)
  ci: bump actions/checkout from 6.0.3 to 7.0.0 (#23250)
  core: bump structlog from 25.5.0 to 26.1.0 (#23241)
  packages/django-dramatiq-postgres/broker: fix race condition in broker causing completed tasks to be repeated (#23218)
  core, web: update translations (#23237)
  core: bump pytest from 9.0.3 to 9.1.0 (#23238)
  core: bump aws-cdk-lib from 2.258.1 to 2.259.0 (#23240)
  core: bump goauthentik/fips-python from `9b938f7` to `cbec346` in /lifecycle/container (#23242)
  core: bump ruff from 0.15.17 to 0.15.18 (#23243)
  ci: bump int128/docker-manifest-create-action from 2.22.0 to 2.23.0 (#23244)
  core: bump pytest-github-actions-annotate-failures from 0.4.0 to 0.4.1 (#23245)
  ci: bump softprops/action-gh-release from 3.0.0 to 3.0.1 (#23247)
  core: bump astral-sh/uv from 0.11.22 to 0.11.23 in /lifecycle/container (#23248)
  ci: bump taiki-e/install-action from 2.81.11 to 2.82.0 in /.github/actions/setup (#23252)
  web: bump date-fns from 4.1.0 to 4.4.0 in /web (#23253)
  core: bump which from 8.0.3 to 8.0.4 (#23254)
  translate: Updates for project authentik and language ar_AA (#23255)
  packages/django-postgres-cache: fix naive datetime warning (#23033)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a11y Features or issues related to accessibility area:backend area:frontend Features or issues related to the browser, TypeScript, Node.js, etc

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

web: flow/login pages disable pinch-zoom (maximum-scale=1) — fails WCAG 1.4.4 / 508

2 participants