Skip to content

fix(site/src/pages/WorkspacesPage): meet 24px target size for the workspace sharing indicator - #32321

Merged
chrifro merged 2 commits into
mainfrom
a11y/target-size-small
Nov 17, 2026
Merged

chrifro merged 2 commits into
mainfrom
a11y/target-size-small

Conversation

@chrifro

@chrifro chrifro commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

The "Workspace permissions" trigger (people icon next to the owner name in the workspaces table) was a 14×16px button with the workspace name link directly above it, so it failed WCAG 2.5.8 (axe target-size) on both size and spacing.

The trigger is now 24×24px. The extra area extends sideways and downward only, and negative margins cancel it out, so the icon stays in the same place and the row height does not change. If the target grew upward too, it would cover the bottom of the workspace name link, and axe would then flag that link as partially obscured.

A new TriggerFocused story tabs to the trigger, so Pixel captures the 24px focus ring.

Closes DEQ-361

Ticket UI surface Screenshots
DEQ-361 /workspaces table, sharing indicator next to the owner name Linear comment

Verification

  • On the dev server at /workspaces with one shared workspace, axe-core 4.11 target-size:
    • before: one violation on the trigger (14px by 16px ... safe clickable space 16px);
    • after: no violations. The trigger is 24×24, the icon sits at the same x/y as on main, and the row is still 72px tall.
  • pnpm check, pnpm lint (including tsc), and the story tests for WorkspaceSharingIndicator.stories.tsx pass.
  • The existing hover stories render the trigger in a plain block rather than a flex row, so the -8px bottom margin may cause small Pixel diffs there.
Decision log
  • Batch label target-size-small contains one eligible ticket, DEQ-361, so this is one root cause and one PR.
  • I fixed the call site rather than TooltipTrigger. The shared interactive trigger wraps content of many sizes, and other callers already size it themselves.
  • First attempt: size-6 -m-1.25 (symmetric). It fixed the trigger, but on the real page axe then flagged the workspace name link as partially obscured. I switched to -mx-1.25 -mb-2 pb-2, which grows the target only into the empty cell padding below.
  • Tradeoff: the focus ring now has 1px above the icon and 9px below it, so it is not centered. The ticket has ux-input-needed, so design may want to weigh in.
  • Test: I wrote a play-function geometry assertion and confirmed it failed on main (14 < 24) and passed on the branch. I then dropped it, because FE1 and FE10 prohibit geometry assertions in play functions. Story-only coverage follows the precedent in fix(site): meet 24px target size in the shared Link component #30844.
  • Self-review: frontend-review found no FAILs. frontend-deep-review found no blocking or should-fix issues; I fixed its nits (the comment wording and a redundant self-start). frontend-accessibility passes target-size, button-name, nested-interactive, and aria-allowed-attr.

🤖 Generated by Coder Agents on behalf of @chrifro.

@chrifro
chrifro temporarily deployed to main November 17, 2026 14:22 — with GitHub Actions Inactive
@chrifro
chrifro temporarily deployed to main November 17, 2026 14:22 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 17, 2026

Copy link
Copy Markdown

DEQ-361

@chrifro
chrifro temporarily deployed to main November 17, 2026 14:23 — with GitHub Actions Inactive
@chrifro
chrifro marked this pull request as ready for review November 17, 2026 14:44
@chrifro
chrifro temporarily deployed to main November 17, 2026 14:45 — with GitHub Actions Inactive
@chrifro
chrifro merged commit 7d98748 into main Nov 17, 2026
76 of 78 checks passed
@chrifro
chrifro deleted the a11y/target-size-small branch November 17, 2026 16:44
@chrifro
chrifro temporarily deployed to main November 17, 2026 16:44 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
main — 784a7667 Deployed Nov 17, 2026 by chrifro via cla #258804
docs-preview — 784a7667 Deployed Nov 17, 2026 by chrifro via cleanup #171
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants