Skip to content

fix(appbar): back icon respects settings icon - #5325

Open
alpharius-ck wants to merge 7 commits into
mainfrom
fix/appbar-back-icon-respects-settings-icon
Open

alpharius-ck wants to merge 7 commits into
mainfrom
fix/appbar-back-icon-respects-settings-icon

Conversation

@alpharius-ck

Copy link
Copy Markdown
Collaborator

Motivation

Appbar.BackAction ignored the settings.icon renderer from PaperProvider. It now uses it on all platforms; iOS keeps its chevron only with the default renderer. Docs updated. Fix by @giaBaoJS, rebased onto main.

Related issue

None.

Screenshots / Videos

iOS, web, Android:

Test plan

  1. In example/src/index.tsx, set a settings.icon that draws another icon for arrow-left.
  2. On iOS, Android and web, check the back button uses it, mirrors in RTL and navigates back.
  3. Remove it; the button matches main.

giaBaoJS and others added 5 commits November 25, 2026 12:45
Keep the bundled chevron only while the default renderer is in place, so
an icon renderer passed through PaperProvider settings is also used for
the back icon on iOS.
With settings={{ icon: undefined }} iOS kept the bundled chevron while Android and web rendered nothing. Only the default renderer keeps the chevron now, so every platform behaves like any other Icon without a renderer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@alpharius-ck alpharius-ck changed the title Fix/appbar back icon respects settings icon fix(appbar): back icon respects settings icon Nov 27, 2026
@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Apex Sentinel: 2 new findings on b33e344. The verdict and the full list are in the summary comment.

@apex-sentinel-staging

This comment has been minimized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 10ffa20

Since the review of 5ff4fb8: 0 new · 1 still open · 1 no longer raised

1 finding(s): 1 minor.

🟡 Minor (1)

Where Finding
src/components/Appbar/AppbarBackIcon.tsx:27 iOS back icon renders blank when settings.icon is explicitly undefined

1 finding below minor hidden (user_settings.min_severity).

Reviewed with this repository's own Sentinel configuration (63a3d5acf854).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants