Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color attribute of textStyle takes precedence over disabledTextColor #119

Open
Inspirateur opened this issue Sep 30, 2022 · 0 comments
Open

Comments

@Inspirateur
Copy link

I'm using the lib on snack (web) and I'm defining a series of MenuItem like so

const types = ['Series', 'Books', 'Movies', 'Animes', 'Games'];

types.map((t) => {
  return (<MenuItem 
    disabled={t==type} 
    onPress={() => select(t)} 
    disabledTextColor='#ff0000'
    textStyle={{color: "white", fontSize: "1em"}}
  >{t}</MenuItem>)
})

But when I display the menu all items are white including the disabled item which should have been red.
When I remove color: "white" the disabled item shows up red as expected but of course the rest of the text is default color.

I think it should be fixed if possible and if not a workaround should be displayed somewhere in the readme when listing the properties of MenuItem because this seems like a very common need.

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

No branches or pull requests

1 participant