Text Focus Effect Not Working in NativeWind tvdemo Component

Open
#3 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
react-native, tailwindcss, typescript
Domain
mobile

Research direction

Start by reproducing the focus behavior in tvdemo.tsx at line 16 with the reported class change. Check whether the issue is in the project or NativeWind integration, and consider the work done when the text color changes to gray on focus or the cause is clearly identified.

Written by the indexing model from the issue text.

Description

I'm not sure if this is a NativeWind issue or a project issue. The text focus effect doesn't work.

Steps to reproduce:

Update line 16 in tvdemo.tsx from:
const buttonTextStyle = 'text-white text-[2.5vw]';

to:
const buttonTextStyle = 'text-white text-[2.5vw] focus:text-gray-900';

Expected result:

  • The text color should change on hover, but it doesn't change.
Dominant language
TypeScript
Stars
17
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.