Skip to content

fix(cloud): keep focus rings whole on flat standalone cards on phones - #498

Merged
ValentinKolb merged 1 commit into
mainfrom
fix/standalone-card-focus
Oct 1, 2026
Merged

ValentinKolb merged 1 commit into
mainfrom
fix/standalone-card-focus

Conversation

@ValentinKolb

Copy link
Copy Markdown
Collaborator

Outcome

On phones, the Core sign-in, password-reset, and new-password pages no longer cut off the focus ring of their full-width fields and buttons. Nothing moves or changes size.

Root cause

Below 48rem a standalone-card drops its frame and padding (#481), so full-width controls reach the card edge. These three Core cards also carry overflow-hidden for their rounded desktop frame. On a phone that clipped the 2 px outer ring on the left and right. These were the only clipped rings left in the dev-stack focus audit after #484 (4 of 1,779 focus stops).

Change

The flat phone variant of standalone-card also sets overflow: visible. Without border, radius, or surface there is nothing left to clip. The rings stay outside the control, the same as on every other page. From 48rem up nothing changes, and the card keeps clipping to its rounded frame there.

Verification

  • MinimalLayout.browser.test.ts: the flat card must not clip. The utility card in the test now carries overflow-hidden like the Core cards. The test fails without the CSS change and passes with it.
  • Dev stack, /auth/login, /auth/password-reset, /auth/new-password at 390, 767, 768, and 1440 px, light and dark, in Chromium, WebKit, and Firefox:
    • every element box is identical with and without the rule (0 changed boxes)
    • clipped rings while tabbing through the page: 9/6/4 at 390 px and 6/3/2 at 767 px before, 0 after
  • bun run check (17/17) and git diff --check.

Below 48rem a standalone card drops its frame and padding, so a full-width
field or button reaches the card edge. The Core sign-in, password-reset, and
new-password cards still clipped with overflow-hidden, which cut the outer
focus ring of those controls on both sides (4 of the 4 clipped rings left in
the focus audit after the focus ring change).

Without border, radius, or surface there is nothing left to clip, so the flat
card now stops clipping. The rings stay outside the control as on every other
page. Measured on the dev stack at 390, 767, 768, and 1440 px in Chromium,
WebKit, and Firefox, light and dark: no element box changes, and no ring is
clipped any more.
@ValentinKolb
ValentinKolb enabled auto-merge October 1, 2026 02:41
@ValentinKolb
ValentinKolb added this pull request to the merge queue Oct 1, 2026
Merged via the queue into main with commit ecd61ee Oct 1, 2026
19 checks passed
@ValentinKolb
ValentinKolb deleted the fix/standalone-card-focus branch October 1, 2026 03:06
@github-actions github-actions Bot mentioned this pull request Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant