Skip to content

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

Open

Description

@Doberjohn

Current behaviour

With error set, the startAccessory icon turns the error color as well as the trailing icon, in LTR and in RTL, on Android and iOS.

Expected behaviour

In the error state only the trailing icon takes the error color, and the leading (start) icon stays onSurfaceVariant, as M3's text field tokens give: md.comp.filled-text-field.error.leading-icon.color and the outlined one are onSurfaceVariant, and the trailing icon's is error.

How to reproduce?

  1. Render:
<TextInput
  label="Email"
  error
  startAccessory={(props) => <TextInput.Icon {...props} icon="email" />}
/>
  1. Look at the start icon's color, then compare with the same field without error.

Your Environment

software version
ios 26.4 (iPhone 17 Pro simulator)
android emulator
react-native 0.88.1
react-native-paper main (also after #5111)
expo sdk 58

Activity

  1. added this to the 6.1.0 milestone on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions