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

fix(css): widget properties in css didn't work #6889

Merged
merged 1 commit into from
Feb 13, 2019

Conversation

MartoYankov
Copy link
Contributor

@MartoYankov MartoYankov commented Feb 11, 2019

Based on the docs - https://docs.nativescript.org/ui/styling#accessing-nativescript-component-properties-with-css - A developer can declare non-CSS widgets properties in the CSS and this would work if the properties accept text based value.

This works only for lowercase only properties, i.e. single word camel case, and it seems this never worked for multi-word camel case properties. The example in the docs works, but properties like textFieldBackgroundColor of the SearchBar didn't work. The solution to this bug is to allow the developer to declare such properties as kebab case like this text-field-background-color.

This actually implements a number of issues marked as features:
Fixes #5355
Fixes #5372
Fixes #6348

Docs needed:
https://docs.nativescript.org/angular/ui/styling#accessing-nativescript-component-properties-with-css

@MartoYankov MartoYankov added the docs needed Additional documentation on this issue/PR is needed label Feb 11, 2019
@MartoYankov MartoYankov self-assigned this Feb 11, 2019
@ghost ghost added the in progress label Feb 11, 2019
@SvetoslavTsenov
Copy link
Contributor

test package_version#rc

1 similar comment
@dtopuzov
Copy link
Contributor

test package_version#rc

@MartoYankov MartoYankov merged commit 8330ac0 into release Feb 13, 2019
@ghost ghost removed the in progress label Feb 13, 2019
@MartoYankov MartoYankov deleted the myankov/css-ns-properties branch February 13, 2019 13:10
@MartoYankov MartoYankov restored the myankov/css-ns-properties branch February 19, 2019 09:23
@manoldonev manoldonev deleted the myankov/css-ns-properties branch February 22, 2019 13:35
@lock
Copy link

lock bot commented Feb 22, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes docs needed Additional documentation on this issue/PR is needed patch
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

None yet

5 participants