Skip to content

fix(TextInput): avoid double-dimming disabled text on Android - #5299

Open
EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/textinput-android-disabled-opacity
Open

EnesKartal wants to merge 1 commit into
callstack:mainfrom
EnesKartal:fix/textinput-android-disabled-opacity

Conversation

@EnesKartal

Copy link
Copy Markdown
Contributor

Summary

  • Skip applying styles.disabled (opacity: 0.38) to the native TextInput element on Android in both filled and outlined variants (src/components/TextInput/utils.ts), because Android already dims disabled (editable={false}) native EditText text at ~0.38 opacity.
  • Add regression test in src/components/__tests__/TextInput.test.tsx verifying styles.disabled opacity is omitted on Android for both filled and outlined inputs.

Verification

  • npx eslint src/components/TextInput/utils.ts src/components/__tests__/TextInput.test.tsx (0 errors)
  • npx jest src/components/__tests__/TextInput.test.tsx (85/85 passed, 7/7 snapshots)
  • npx tsc --noEmit (0 errors)

Fixes #5295

Copilot AI balanced review requested due to automatic review settings November 23, 2026 19:33
@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.

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.

@Doberjohn Doberjohn added this to the 6.1.0 milestone Nov 24, 2026
@Doberjohn

Copy link
Copy Markdown
Collaborator

Thanks! 6.0 now takes only regressions and major bugs, so this is on the 6.1.0 milestone and gets its review after 6.0.0. Could you add before and after screenshots or a short video in the meantime?

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: on Android a disabled field's text is dimmed twice

3 participants