Skip to content

Add opt-in Material 3 connected button groups for ion-segment - #80

Merged
rdlabo merged 3 commits into
mainfrom
feat/segment-group
Nov 30, 2026
Merged

rdlabo merged 3 commits into
mainfrom
feat/segment-group

Conversation

@rdlabo

@rdlabo rdlabo commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Add .segment-group to an ion-segment to use Material 3 connected button shapes with Ionic single selection. A press tightens the inner corners and starts a bounded ripple. On release the selected item becomes pill-shaped. The item widths and 2px gaps stay fixed.

The Segment demo and the Special markup guide include an interactive example. Verified the leading, middle and trailing button geometry in LTR and RTL, and opened the documentation preview directly to check selection.

Android 17 reference

Settings → Modes → Transit → App settings. A short touch near the left edge of the selected middle option isolates the ripple from a selection change.

android-ripple.mp4

Theme demo

ionic-ripple.mp4

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Playwright test results

passed  286 passed

Details

stats  286 tests across 18 suites
duration  3 minutes, 25 seconds
commit  3d81798
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 30, 2026
@github-actions

github-actions Bot commented Nov 30, 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-80/

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

@rdlabo

rdlabo commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

/update-screenshots

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

rdlabo commented Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

/update-screenshots

@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 30, 2026
@rdlabo
rdlabo merged commit bd17ab9 into main Nov 30, 2026
12 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

npm beta published

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

npm install @rdlabo/ionic-theme-md3@9.3.0-beta.pr80.shabd17ab96a32f

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