Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ActionBar] Background is not being applied on iOS #9338

Open
@LouieTian0209

Description

@LouieTian0209

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: 8.0.1
  • Cross-platform modules:
  • Android Runtime:
  • iOS Runtime:
  • XCode Version:
  • Plugin(s):

Describe the bug
background attribute set in css on ActionBar is being applied normally on Android, but not on iOS.

ActionBar {
	background: linear-gradient(180deg, rgba(0, 115, 150, 0.85) 0%, rgba(25, 160, 172, 0.85) 100%);
	color: white;
	padding: 0;
}

Android screenshot:
2021-04-16_16-54

iOS screenshot:
截屏2021-04-16 下午4 45 46

The ActionBar is still there on iOS and I am able to alter the background color with background-color: black;, but I need to set the background color with a gradient color value and only background attribute supports gradient color.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions