Skip to content

fix(alert): align embedded controls with Android 17 references - #75

Merged
rdlabo merged 11 commits into
mainfrom
fix/alert-input-controls
Nov 11, 2026
Merged

rdlabo merged 11 commits into
mainfrom
fix/alert-input-controls

Conversation

@rdlabo

@rdlabo rdlabo commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Alert checkboxes still used Ionic's 16px geometry, and embedded control state colors could override Material roles. Text inputs also accumulated an extra 20px gap below a header without a message. Choice lists retained Ionic dividers while the action group had zero top padding, leaving rounded buttons touching the bottom divider.

This change uses an 18px checkbox with a contained checkmark, maps checkbox/radio/input colors to Material roles, adjusts text size and header-to-field spacing, removes persistent radio/checkbox list dividers, and adds 24px between choice content and actions. The demo now includes checkbox, radio, text input, and textarea Alert variants, including wrapping and disabled choices. Legacy Ionic 8 checkbox columns are aligned with Ionic 9 without overriding Ionic 9 placement options.

Android 17 comparison

Captured on Pixel 8a, Android 17 CP2A.260705.006, density 420. The native checkbox is from Settings → Accessibility → Magnification shortcut; it is a geometry reference for the control, not an equivalent multi-choice Alert. The native input is from Settings → About phone → Device name. The native choice dialog is Settings → Network & internet → Private DNS: it has no persistent list divider and separates content from actions. Its additional input/help content means it is a structural reference, not a claim of identical dialog geometry. Updated theme captures use Chrome on the same device with the default Ionic palette. Native selected-glyph, wallpaper-color, and full-dialog pixel equivalence are not claimed.

Control Android 17 Settings reference Updated MD3 Alert on Android 17 Chrome
Checkbox Native Android 17 unchecked checkbox Updated MD3 Alert checkbox states
Input Native Android 17 focused device-name input Updated MD3 Alert device-name input
Choice dialog Native Android 17 Private DNS choice dialog Updated MD3 Alert radio with separated actions

Validation

  • Theme build and formatting checks passed.
  • Demo production build and ESLint passed; existing bundle-budget, Browserslist, and unused SettingsPage import warnings remain.
  • Existing Alert alignment and keyboard-focus tests passed (8 cases).
  • Existing color-role test now waits for every sampled component to hydrate before reading native colors; light/dark repeated validation passed 16 cases.
  • Checkbox, radio, text input, and textarea variants are covered by the existing screenshot suite in light/dark and default/device palettes. No separate input E2E suite is added.
  • Inspected updated checkbox and input rendering in Chrome on the Android 17 device.
  • Linux CI generated the latest baselines and verified them with Ionic 8 and 9: https://github.com/webview-native-ui/ionic-theme-md3/actions/runs/43040536470. Generated radio/checkbox images were visually inspected for absent dividers and separated actions. Unrelated Segment/Toolbar/Toggle image drift was excluded. Local/device images above are comparison evidence, not CI baselines.

@rdlabo

rdlabo commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

/update-screenshots

@rdlabo

rdlabo commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

/update-screenshots

@rdlabo

rdlabo commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

/update-screenshots

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Playwright test results

passed  282 passed

Details

stats  282 tests across 18 suites
duration  2 minutes, 59 seconds
commit  fe81e3e
info  This detailed result covers Ionic 9 only. Ionic 8 runs against the same screenshots in a separate matrix job; check the workflow run for both results. To update the screenshots, comment with /update-screenshots.

github-actions Bot added a commit that referenced this pull request Nov 11, 2026
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

📊 Ionic 9 Playwright Test Report

View the detailed Ionic 9 report: https://webview-native-ui.github.io/ionic-theme-md3/pr-75/

Ionic 8 runs against the same screenshots in a separate matrix job. View both results in the workflow run.

github-actions Bot added a commit that referenced this pull request Nov 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ Failed to update screenshots.

Please check the workflow run for details.

github-actions Bot added a commit that referenced this pull request Nov 11, 2026
@rdlabo

rdlabo commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

/update-screenshots

@github-actions

Copy link
Copy Markdown
Contributor

✅ Screenshots have been updated successfully!

The new screenshots have been committed to this PR.

github-actions Bot added a commit that referenced this pull request Nov 11, 2026
@rdlabo

rdlabo commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

/update-screenshots

github-actions Bot added a commit that referenced this pull request Nov 11, 2026
github-actions Bot added a commit that referenced this pull request Nov 11, 2026
@rdlabo

rdlabo commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

/update-screenshots

github-actions Bot added a commit that referenced this pull request Nov 11, 2026
@rdlabo

rdlabo commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

/update-screenshots

@github-actions

Copy link
Copy Markdown
Contributor

✅ Screenshots have been updated successfully!

The new screenshots have been committed to this PR.

github-actions Bot added a commit that referenced this pull request Nov 11, 2026
github-actions Bot added a commit that referenced this pull request Nov 11, 2026
github-actions Bot added a commit that referenced this pull request Nov 11, 2026
@rdlabo
rdlabo merged commit 50d92c4 into main Nov 11, 2026
11 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

npm beta published

CI passed for the merge commit 50d92c40d9e8. Install the immutable version with:

npm install @rdlabo/ionic-theme-md3@9.2.1-beta.pr75.sha50d92c40d9e8

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