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

Icon inside IconButton ignores dark mode setting from default theme #5709

Open
4 of 5 tasks
rogerlga opened this issue Mar 13, 2023 · 0 comments
Open
4 of 5 tasks

Icon inside IconButton ignores dark mode setting from default theme #5709

rogerlga opened this issue Mar 13, 2023 · 0 comments

Comments

@rogerlga
Copy link

Description

The Icon inside an IconButton should have its properties changed when toggled to dark mode, according to '_dark' pseudo props defined in the IconButton default theme

CodeSandbox/Snack link

https://snack.expo.dev/@rogerlga/nativebase-iconbutton-issue

Steps to reproduce

  1. Open the Snack link provided
  2. Click on the top icon (IconButton)
  3. Unlike other elements in the screen (including the bottom icon, that is a plain Icon), the top icon (IconButton) doesn't change its color. The icon color should change to 'muted.50', as coded in the IconButton default theme.

Note that if _dark={{ _icon: { color: 'muted.50' } }} in line 17 is uncommented, the code works as expected, but it should behave this way without this piece of code, as it is exactly what is coded in the IconButton default theme (variant 'unstyled' in the example, but the same issue occurs for the other variants).

NativeBase Version

3.4.28

Platform

  • Android
  • CRA
  • Expo
  • iOS
  • Next

Other Platform

No response

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant