Skip to content

fix(system-bars): use separate current styles - #8409

Merged
jcesarmobile merged 2 commits into
mainfrom
separate-defaults
Mar 31, 2026
Merged

jcesarmobile merged 2 commits into
mainfrom
separate-defaults

Conversation

@jcesarmobile

Copy link
Copy Markdown
Member

The bars can be styled separately, track the current style per bar

closes #8396

@jcesarmobile
jcesarmobile merged commit 3d1f8d1 into main Mar 31, 2026
6 checks passed
@jcesarmobile
jcesarmobile deleted the separate-defaults branch March 31, 2026 10:26
@kklem0 kklem0 mentioned this pull request Aug 2, 2026
3 tasks
fabiomartino added a commit to fabiomartino/capacitor that referenced this pull request Aug 23, 2026
Resolve the SystemBars.java three-way conflict keeping the automatic
edge-to-edge and universal keyboard architecture from this branch
(ionic-team#8366) while adopting upstream's structural changes:

- insetsHandling as a validated string field with Logger.warn fallback
  (upstream ionic-team#8481), replacing the boolean gate across listener
  registration, initial CSS variables, and onDOMReady
- separate status bar and gesture bar style tracking (upstream ionic-team#8409)
- per-bar show/hide with else-if semantics (upstream ionic-team#8480)
- viewport JS text block TODO note for the future 'full' option

Fold in compatible ideas from open PR ionic-team#8454:
- navBarVisible tracking in setHidden so hidden navigation bars do not
  contribute phantom bottom insets
- navigation_bar_height resource fallback for legacy (API < 30) OEM
  builds reporting zero-height nav insets, suppressed for lint
  (InternalInsetResource, DiscouragedApi) since no supported API
  exposes a static navigation bar height
- IME visibility fallback below Android O via ime inset bottom > 0
- store requested styles so DEFAULT keeps following system theme
  changes when reapplied on configuration change or resume

PR ionic-team#8528's SDK gate for IME padding needs no code here: this branch
never applies window IME padding (keyboard is handled via CSS
variables and the inset builder), so double keyboard spacing on
API <= 34 cannot occur.
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.

[Bug]: SystemBars orientation change overrides independent bar styles

2 participants