Repository navigation
fix(TextInput): keep start accessory icon onSurfaceVariant in error state - #5258
EnesKartal wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
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.
|
Found potential problems with the pull request:
|
1b64954 to
d138fb5
Compare
There was a problem hiding this comment.
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.
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.