Skip to content

fix: use applied selection color for native Vertical Bars tabs - #321

Merged
rdlabo merged 3 commits into
mainfrom
fix/vertical-tab-colors
Oct 23, 2026
Merged

rdlabo merged 3 commits into
mainfrom
fix/vertical-tab-colors

Conversation

@rdlabo

@rdlabo rdlabo commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Vertical Bars tabs currently use the system selection tint even when Ionic applies a custom selected-tab color. Read the selected tab button's existing computed foreground color and pass it to the native tab bar. This follows Ionic's --color-selected, per-tab overrides and light/dark theme changes without requiring a separate RGB palette token or adding color-measurement DOM.

Keep normal/disabled colors, labels, glass backgrounds and toolbar/search controls under native styling. Tab bars using Ionic's color palette retain the system tint because their contrast foreground assumes a colored Web background. Missing selection or unsupported computed color formats also use the system tint. Reapply the tint if SwiftUI resets it during tab reconstruction. The snapshot field is optional for backward compatibility.

Validation:

  • TypeScript workspace build and targeted Prettier checks passed.
  • 8 related browser tests passed, including --color-selected, per-tab overrides, light-dark(), currentColor, alpha, palette exceptions, existing tab navigation and SVG/theme behavior.
  • 58 native simulator tests passed for the unchanged native tint implementation, including same-color selection changes, the dark appearance trait, updates and restoration of the system tint.
  • Independent supervisor and third-party acceptance review cycles completed with no remaining blocking findings.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Playwright test results

passed  484 passed

Details

stats  484 tests across 25 suites
duration  3 minutes, 17 seconds
commit  4948da8
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.

@rdlabo rdlabo changed the title fix: apply app primary tint to native Vertical Bars tabs fix: use applied selection color for native Vertical Bars tabs Oct 23, 2026
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

📊 Ionic 9 Playwright Test Report

View the detailed Ionic 9 report after GitHub Pages deployment completes: https://rdlabo-dev.github.io/ionic-theme-ios27/pr-321/

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

@rdlabo
rdlabo merged commit e1560f0 into main Oct 23, 2026
16 checks passed
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