Skip to content

fix: improve website accessibility and CTA clarity - #31

Merged
planger merged 1 commit into
mainfrom
improve-website
Jul 29, 2026
Merged

planger merged 1 commit into
mainfrom
improve-website

Conversation

@planger

@planger planger commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Applies a round of marketing and design review feedback on the landing page. Seven points were raised; all seven held up on inspection and are applied here.

Accessibility

--muted was #7a8291, 3.87:1 on white — below the 4.5:1 AA threshold for body text. It is the token behind the tagline, section leads, nav links, badge text, diagram caption, and footer, so it accounted for most of the reported failures. Now #616a79 (5.46:1 on white, 5.14:1 on --bg-subtle).

Three further failures of the same kind that were not in the feedback:

  • .cli-block .comment — #6b7280 on #14181f was 3.68:1
  • the diagram's "Allowed" / "Blocked" labels — 3.61:1 and 4.41:1

The docs site carries a separate palette, where --ifm-color-content-secondary was 4.49:1 on white while rendering real body copy in .enclave-box p; the footer copyright was 4.33:1 on navy. Both fixed.

All 16 changed foreground/background pairs now compute at ≥5.0:1.

False affordances

  • The approach cards had a translateY hover lift but are not links. Removed.
  • The hero badges were pill-shaped with borders and fills, and the coming-soon badge reused the primary CTA's exact gradient. Replaced with a plain attribute list (.hero-facts) — no fill, border, or radius, each item prefixed with a small check glyph so it reads as a spec list rather than a row of disabled buttons.

Mobile diagram

The "how it works" diagram is a 720-wide viewBox with 9px labels, which render around 4px at a 320px viewport. A vertically stacked variant (340×510, Developer → Container → Gateway → Allowed/Blocked) now takes over under 720px and the wide one hides. Capped at 340px so it renders near 1:1 instead of scaling up. display: none also keeps the inactive variant out of the accessibility tree, so there is no duplicate announcement.

Copy and layout

  • Hero logo removed; it duplicated a mark that is already in the sticky nav. With the hero top padding trimmed 104px → 84px, the headline moves up roughly 120px.
  • Eyebrow "Coming soon" → "On the roadmap"; the sticker on the mockup became "In development", since both reading "coming soon" in one section was redundant.
  • Both primary CTAs "Get started" → "Install Enclave". The target page covers install and first run, so it is accurate and not merely punchier.

Also corrected a stale comment in styles.css claiming the docs theme mirrors these tokens — it has its own palette.

Verification

  • Contrast ratios computed for every changed pair: 16/16 pass AA, zero failures.
  • Both diagram SVGs parse as well-formed XML; marker references resolve within their own <svg>; no duplicate ids across the page.
  • Stacked-SVG geometry checked for rect and label overflow against the viewBox: none.
  • CSS braces balanced; all five removed class names gone from both HTML and CSS.
  • make check-license-headers passes (458 files).

Not verified: no browser was available in the authoring environment, so these changes have not been seen rendered. The stacked diagram's visual balance and the wrapping of .hero-facts at narrow widths are reasoned from geometry rather than observed — worth a look via website/preview.sh before merging. make build/test/lint were not run, as no Go code changed.

Applies marketing and design review feedback on the landing page.

Accessibility: the --muted token was 3.87:1 on white, below the AA
threshold for body text, and it drives the tagline, section leads, nav
links, captions, and footer. Darkened it along with the terminal block's
comment color and the diagram's Allowed/Blocked labels, which failed the
same check. The docs theme has its own palette where
--ifm-color-content-secondary was 4.49:1 while rendering real body copy.

UX: dropped the hover lift on the approach cards and the pill styling on
the hero badges, both of which implied clickable controls. The badges are
now a plain attribute list.

The wide "how it works" diagram scaled its 9px labels below legibility on
phones, so a vertically stacked variant now takes over under 720px.

Copy: removed the hero logo, already present in the sticky nav, to lift
the headline above the fold; "coming soon" became "on the roadmap", and
the primary CTAs name their destination.
@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-29 14:23 UTC

@planger
planger merged commit 7d458ad into main Jul 29, 2026
5 checks passed
@planger
planger deleted the improve-website branch July 29, 2026 14:23
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