You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: 5.4.0
Cross-platform modules:
Android Runtime: 5.4.0
iOS Runtime:
Plugin(s):
NativeScript-Angular: 7.2.4
Angular: 7.2.15
Describe the bug
The :host css selector only works first time, after that that the selector is ignored for the component.
To Reproduce
Use :host in a components stylesheet.
Use the component more than once.
The style is ignored.
Expected behavior
I'd expect the style to be applied to every instance of the component.
All the items should have: background-color = green, color = black, text centered, font-weight = normal and padding = 8.
But only the first item looks like that the others have: background-color: blue, color = white, text right aligned, font-weight = bold and no padding.
Additional context
The text was updated successfully, but these errors were encountered:
m-abs
changed the title
CSS special selector ":host" only works first tiem.
CSS special selector ":host" only work first time
Jun 3, 2019
Environment
Provide version numbers for the following components (information can be retrieved by running
tns info
in your project folder or by inspecting thepackage.json
of the project):Describe the bug
The
:host
css selector only works first time, after that that the selector is ignored for the component.To Reproduce
:host
in a components stylesheet.Expected behavior
I'd expect the style to be applied to every instance of the component.
Sample project
I've made a small project with a
ListView
and an item-component here:https://play.nativescript.org/?template=play-ng&id=NXYfcY&v=15
All the items should have: background-color = green, color = black, text centered, font-weight = normal and padding = 8.
But only the first item looks like that the others have: background-color: blue, color = white, text right aligned, font-weight = bold and no padding.
Additional context
The text was updated successfully, but these errors were encountered: