Skip to content

fix(drawer): expand the collapsed item indicator when it becomes active - #5233

Merged
Doberjohn merged 1 commit into
mainfrom
@Doberjohn/drawer-collapsed-active-indicator
Nov 18, 2026
Merged

Doberjohn merged 1 commit into
mainfrom
@Doberjohn/drawer-collapsed-active-indicator

Conversation

@Doberjohn

@Doberjohn Doberjohn commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Drawer.CollapsedItem widened its active indicator only on press out. When active turned true any other way, such as a route change or a TalkBack activation (onPress without onPressOut), the indicator stayed at half width. It now animates to full width whenever active turns true.

Related issue

None filed. Found while sampling the indicator's animated style in Jest.

Screenshots / Videos

Before and after on Android; a timer changes the active item, no press:

Before:

drawer-android-before-main.mp4

After:

drawer-android-after-fix.mp4

Test plan

With "Collapsed drawer" on in the example:

  1. Press an item: its indicator grows from half to full width, as before (web).
  2. Make an item active without a press: its indicator reaches full width (iOS 27.2, Android 13). TalkBack not tried.

The indicator only expanded on press out, so an item made active
without a press (for example by a route change) kept the half-width
indicator. Animate it to full size whenever active turns true. After a
press the indicator is already at full size or on its way there, and
the new animation carries on from its current value.
@apex-sentinel-staging

apex-sentinel-staging Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 1fa859a

No open findings.

🔕 1 dismissed finding, not raised again
Finding Dismissed by
🟡 New no-press expansion animates even when the app sets reduceMotion @Doberjohn

To raise one again, reply @apex-sentinel-staging note ... in its thread. It stays dismissed only if Sentinel's re-check withdraws it.

Reviewed with this repository's own Sentinel configuration (86430de2a63e).

💬 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.

@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: 1 new finding on 1fa859a. The verdict and the full list are in the summary comment.

@Doberjohn
Doberjohn merged commit dd4ea6e into main Nov 18, 2026
17 checks passed
@Doberjohn
Doberjohn deleted the @Doberjohn/drawer-collapsed-active-indicator branch November 18, 2026 00:31
@Doberjohn Doberjohn added this to the 6.0.0 milestone Nov 18, 2026
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.

1 participant