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

Skip to content

ActionBar css inheritance doesn't work #8058

Open
@elonmallin

Description

@elonmallin

Environment

  • CLI: 6.1.2
  • Android Runtime: 6.1.2
  • iOS Runtime: 6.1.0
  • nativescript-theme-core: 2.0.24
  • Using Nativescript iwth Angular

Describe the bug
When setting a class on the ActionBar or a GridLayout inside of it, css inheritance doesn't work.

To Reproduce

  1. Create a component with the html:
<ActionBar class="interit-test">
  <GridLayout class="inherit-test">
    <Label text="I want to be red"></Label>
  </GridLayout>
</ActionBar>
  1. Add this to the css file:
.inherit-test {
  color: red;
}
  1. See that the label isn't red but black.

Expected behavior
The label should be red since it should ingerit the color from the GridLayout and the ActionBar.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions