Skip to content

Bugs, accessibility, new input types, Minimal Design tier#5

Merged
formspiel merged 3 commits intomasterfrom
claude/analyze-form-testing-project-VuWXv
Apr 20, 2026
Merged

Bugs, accessibility, new input types, Minimal Design tier#5
formspiel merged 3 commits intomasterfrom
claude/analyze-form-testing-project-VuWXv

Conversation

@formspiel
Copy link
Copy Markdown
Owner

Summary

  • Bug fixes — slider oninput SyntaxError, design-basic.css invalid CSS, pattern title mismatch, empty <h2> removed
  • Labels — all state-description labels replaced with realistic field names (Full name, Comment, Country, Appointment, etc.) so screen readers announce meaningful content
  • Navigation — dynamic skip-link generator replaced with a static collapsed <details>/<summary> nav listing all 22 sections; each fieldset gets a stable id
  • Colour contrast — updated to WCAG AAA (7:1): light #111111/#f5f5f5, dark #f0f0f0/#1a1a1a, links pass in both modes
  • accent-color#003781 added to :root (closes Add accent-color CSS #1)
  • ARIA group section — loose testing <div> replaced with a proper documented section (closes Add ARIA group example #3)
  • Minimal Design tier — two "(tbd)" checkboxes consolidated into one "Minimal Design" checkbox with full Allianz Blue styling (border, border-radius, padding, focus outline, button styles)
  • 10 new input type sections — Email, Telephone, URL, Number, Search, Color, File, Date, Time, Buttons — each with the 5-state grid
  • Indeterminate checkbox — new variant with state set via JS
  • Cleanup<fieldset><legend><h3> testing artifact removed, @supports dynamic type for WebKit added, :focus:focus-visible, * :disabled*:disabled, gap on grid, dead CSS rules removed

claude added 3 commits April 20, 2026 05:46
- Remove empty <h2 title="hallo"> (no content, debug attribute)
- Fix slider oninput: hyphenated names are not valid JS identifiers
- Fix pattern title: said 'uppercase letters' but pattern is [0-9]{3}
- Fix design-basic.css: add missing semicolon, wrap bare property in
  a selector, replace undefined --text-color-pos with --color-text
- Update CLAUDE.md: nav should be collapsed by default

https://claude.ai/code/session_01JwsuyxwfMZfKQhT9twfkRY
Labels: replace all state-description labels with realistic field
names (Full name, Password, Comment, Country, Region, Appointment,
Volume, etc.) so screen readers announce meaningful content, not
just the element state.

Navigation: replace dynamic skip-link generator with a static
collapsed <details>/<summary> nav listing all 11 sections. Each
fieldset gets a stable id. The Cash dependency for nav generation
is removed; design-tier toggle logic is kept.

Colour contrast: update :root colour tokens to pass WCAG AAA (7:1).
Light mode — text #111111 on #f5f5f5 (~16:1); link #003781 (~9:1).
Dark mode — text #f0f0f0 on #1a1a1a (~14:1); link #7ab3e8 (~7.7:1).

accent-color: add accent-color: #003781 to :root (closes issue #1).

CSS: add @supports dynamic-type block for WebKit, fix :focus ->
:focus-visible in dark mode, fix * :disabled -> *:disabled, add
gap to .grid-wrapper, add padding-inline to body, remove all empty
rule blocks and unused --bright-green / color-gamut media query,
add font-family: inherit to design-01 tier, add minimal nav styles.

OTP: move label before input, use visible text "One-time code",
remove title-tooltip fallback.

Behaviour.js: remove Generator prototype and hasAttr helper (only
used by the now-removed skip-link generator), tighten debug check
to window.location.hostname comparison.

https://claude.ai/code/session_01JwsuyxwfMZfKQhT9twfkRY
Minimal Design tier (design-02):
- Consolidate two '(tbd)' checkboxes into one 'Minimal Design' checkbox
- Implement full Allianz Blue (#003781) styling: border, border-radius,
  padding, focus outline using var(--color-link) so dark mode adapts
- Button/submit/reset get blue background with accessible contrast

New form element sections (10 added, all with 5-state grid):
- Email, Telephone, URL, Number, Search, Date, Time
- Color (required + read-only marked 'Not available')
- File (pre-filled + read-only marked 'Not available')
- Buttons: comparison of button vs input[type=submit/reset] across
  default and disabled states using 5-column grid

Indeterminate checkbox:
- New 'Indeterminate' variant in Checkbox Group section
- Set via JS (el.indeterminate = true); cannot be done in HTML

Cleanup:
- Remove <fieldset><legend><h3> testing artifact entirely
- Replace loose <div role="group"> with <section id="section-aria-group">
  with proper heading and description (closes issue #3)
- Fix duplicate name="check-choose" in ARIA group section
- Nav updated with all 22 sections (was 11)

behaviour.js:
- Fix .attr('checked', true) -> .prop() + immediate body class add
  so Streamline typography is visible on first load without interaction

https://claude.ai/code/session_01JwsuyxwfMZfKQhT9twfkRY
@formspiel formspiel merged commit a7637d6 into master Apr 20, 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.

Add ARIA group example Add accent-color CSS

2 participants