Repository navigation
feat: support badges on toolbar buttons - #76
Conversation
|
/update-screenshots |
Playwright test resultsDetails
|
|
📊 Ionic 9 Playwright Test Report View the detailed Ionic 9 report: https://webview-native-ui.github.io/ionic-theme-md3/pr-76/ Ionic 8 runs against the same screenshots in a separate matrix job. View both results in the workflow run. |
|
/update-screenshots |
レビュー方針(CSSだけでの直下 1. CI
|
|
Devinのレビューへの対応です。
新しいユニットテストや寸法テストは追加していません。build・lintも成功しています。 |
|
/update-screenshots |
|
/update-screenshots |
|
補足: バッジの装飾はbuttonの責務に留め、ion-button.scssへ直接記述しました。別モジュールを削除し、utilsへの抽出は行っていません。build・lintも再確認済みです。 |
|
❌ Failed to update screenshots. Please check the workflow run for details. |
|
✅ Screenshots have been updated successfully! The new screenshots have been committed to this PR. |
|
/update-screenshots |
|
✅ Screenshots have been updated successfully! The new screenshots have been committed to this PR. |
npm beta publishedCI passed for the merge commit npm install @rdlabo/ionic-theme-md3@9.2.2-beta.pr76.shae697ec4ad734 |


Direct-child
ion-badgeelements now overlay Material 3 toolbar buttons without changing the button layout. Standalone buttons andion-buttonsgroups support empty, numeric and wide badges. Styling stays inion-button.scss, scoped to toolbar buttons with a direct badge child and preserving theme opt-outs, Ionic colors and CSS-hidden states.Usage and live standalone/grouped previews are in demo Docs / Special markup, generated from
docs/special-markup.md. The comparison demo is reachable from Index and includes a back action. Existing image regression covers light/dark and device palettes, LTR/RTL and unaffected outside/nested badges. No separate JavaScript unit or dimension tests were added.The native comparison uses Material Components 1.13.0
MaterialToolbarwith the toolbar overload ofBadgeUtils.attachBadgeDrawable, including its clipping offsets. The 6dp empty indicator is centered +9/-9dp from the icon center; the 16dp numeric badge is centered +8/-8dp.Validation: final PR CI passed, including Ionic 8/9 screenshot regression, lint and package checks. The four new baseline images were generated by the repository's Linux CI update workflow; unrelated baselines remain unchanged.
Related: webview-native-ui/capacitor-plugin#26 and webview-native-ui/capacitor-plugin#57.