Skip to content

fix(searchbar): apply className on the outer surface - #5316

Open
pcbeingused333 wants to merge 1 commit into
callstack:mainfrom
pcbeingused333:fix/react-native-paper-4817
Open

pcbeingused333 wants to merge 1 commit into
callstack:mainfrom
pcbeingused333:fix/react-native-paper-4817

Conversation

@pcbeingused333

Copy link
Copy Markdown

A NativeWind className on Searchbar was forwarded only to the inner text input. A background class then painted the field and left the rest of the bar, including the icon, on the default surface color.

The same class is now applied to the outer surface as well as the input. When no class is passed, neither element receives one.

Prepared with the help of an AI coding assistant.

Fixes #4817

NativeWind className reached only the inner text input, so a background
class did not cover the whole bar.

Fixes callstack#4817
@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 24, 2026

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.

Not Able to change background color of entire searchbar using className

2 participants