Skip to content

[BottomNav][iOS]Incorrect color applied to icon/text #7862

@PeterStaev

Description

@PeterStaev

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 6.1
  • Cross-platform modules: 6.1
  • Android Runtime:6.1
  • iOS Runtime:6.1

Describe the bug
Have an image that is white. when placed in the bottom nav it becomes colored blue when the tab is active and grey when the tab is inactive.
For the color of the label it is applied only when the tab is active. When the tab is inactive it becomes the same grey color as the icon.

To Reproduce
https://play.nativescript.org/?template=play-tsc&id=khpHyT

Note the color of the label happens ONLY locally when you run the app. On the playground app it works as expected.

Expected behavior
The icon should either remain the color it is, or there should be options to be colored with a specific color.
The text should get its color from the class/style applied.

Additional context
This is a regression from 6.0.
Related to #6967

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions