Skip to content

fix(TextInput): keep start accessory icon onSurfaceVariant in error state - #5258

Open
EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/issue-5253
Open

EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/issue-5253

Conversation

@EnesKartal

Copy link
Copy Markdown
Contributor

Fixes #5253

Wraps
enderLeadingAccessory in TextInputAccessoryPlacementContext ('start') so TextInput.Icon rendered inside startAccessory stays onSurfaceVariant in the error state (per MD3 tokens), while endAccessory icons continue to use error and startAccessory still receives error: true in TextInputAccessoryProps.

Verified locally with
px jest src/components/tests/TextInput.test.tsx src/components/tests/TextInputStates.test.tsx src/components/tests/TextInputAccessibility.test.tsx (172 passed, 7 snapshots passed) and
px tsc --noEmit.

Copilot AI balanced review requested due to automatic review settings November 20, 2026 08:12

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@Doberjohn Doberjohn added this to the 6.1.0 milestone Nov 20, 2026
Copilot AI balanced review requested due to automatic review settings November 20, 2026 15:19

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextInput: in the error state the start icon also turns the error color

3 participants