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

Higher priority of primitive-classes #249

Open
wendt88 opened this issue Feb 10, 2020 · 0 comments
Open

Higher priority of primitive-classes #249

wendt88 opened this issue Feb 10, 2020 · 0 comments
Assignees
Labels

Comments

@wendt88
Copy link

wendt88 commented Feb 10, 2020

Is your feature request related to a problem? Please describe.
classes form primitives folder have a low priority.
They are the same as utilities in Bootstrap. there all those classes have the !important modifier.

Describe the solution you'd like
Nativescript does not supports !important, but you can add the wildcard Tag-selector * in front of the base selector, or wrap them into .ns-root {} to increase their priority

Additional context
In my example I added some cases.

  1. adding a color class to a form-label does not applyes, because the label color gets styled already with a higher priority in _forms.scss
  2. changing the icon inside a list view (color and font-size) doen't works in combination with the nt-icon-class (_list-view.scss uses more accurate selectors)
@bundyo bundyo added the bug label Feb 10, 2020
@bundyo bundyo self-assigned this Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants