Skip to content

feat: project toolbar button badges with Ionic colors - #57

Merged
rdlabo merged 4 commits into
mainfrom
feat/toolbar-button-badge
Nov 17, 2026
Merged

rdlabo merged 4 commits into
mainfrom
feat/toolbar-button-badge

Conversation

@rdlabo

@rdlabo rdlabo commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

SwiftUI toolbar actions currently omit direct-child Ionic badges. This projects their text/empty indicator and accessibility value while retaining the system badge geometry. The public UIKit badge API applies the source badge's resolved background and text colors, so native rendering follows Ionic instead of imposing a fixed system red.

Rail badge eligibility now follows the native action even when its source badge lies outside the WebView viewport. Hidden badges and ordinary horizontal source eligibility remain respected. Web rail fallback clones now retain direct badges, resolved colors and display state through updates/removal, excluding temporary prehide state. Badge-only updates retain the existing icon node.

Validation: final PR CI passed (plugin, Swift, Android and both real-theme demo shards). CI executed and passed the hosted toolbar badge image test, including a same-count color update. Local hosted image tests also passed on iOS 26.5 and 27.2. Existing Web rail/tab badge tests and full plugin/core suites passed; no new JavaScript test functions or files were added during the review corrections.

Related: #26; theme fallbacks in webview-native-ui/ionic-theme-ios27#376, webview-native-ui/ionic-theme-ios27#377 and webview-native-ui/ionic-theme-md3#76.

Local native reference captures follow; these are not Linux Web screenshot baselines.

iOS 26.5: Ionic primary badge color

iOS 27.2: Ionic primary badge color


Devin Review

iOS 27.2: same count, updated Ionic success background and contrasting text

Real Web rail fallback with a prehidden source

Real Web rail fallback inside a presented Ionic modal

Additional cross-PR integration passed both shards using native candidate 97cc5e2 and exact theme commit 850ece43008eb8755bb5a49479b2cda03906a430: https://github.com/webview-native-ui/capacitor-plugin/actions/runs/43848208978. Engine dependency versions are unchanged.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

@rdlabo
rdlabo merged commit 93d2771 into main Nov 17, 2026
7 of 9 checks passed
rdlabo added a commit that referenced this pull request Nov 19, 2026
* fix: prepare captures from acknowledged controls during updates

* fix: refresh captured pixels after acquisition fades finish

* chore: update Engine to 1.0.10 (#58)

* 2.1.9

* feat: project toolbar button badges with Ionic colors (#57)

* feat: project toolbar button badges with Ionic colors

* fix: refresh badge colors and accessibility without a label change

* fix: preserve SwiftUI ownership of toolbar accessibility values

* fix: preserve direct toolbar badges in Web rail projections

* 2.1.10

* chore: update Engine to 1.0.11 (#59)

* 2.1.11

* docs: Clarify the Capacitor Native UI setup paths (#60)

* docs: Clarify the Capacitor Native UI setup paths

* docs: use consistent names for shared features

* docs: link README guides to the documentation website

* docs: apply package guide review feedback

* docs: separate getting started from detailed guidance

* docs: address final package guide review

* Preserve Ionic action colors on system glass rail buttons (#61)

* Prepare settled captures during list recycling and forward Android contact events
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