FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(css): widget properties in css didn't work by MartoYankov · Pull Request #6889 · NativeScript/NativeScript · GitHub

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

Merged
MartoYankov merged 1 commit into
releasefrom
myankov/css-ns-properties
Feb 13, 2019
Merged

MartoYankov merged 1 commit into
releasefrom
myankov/css-ns-properties

Conversation

MartoYankov commented Feb 11, 2019
edited
Loading

Copy link
Copy Markdown
Contributor

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 added the docs needed Additional documentation on this issue/PR is needed label Feb 11, 2019
MartoYankov self-assigned this Feb 11, 2019
ghost added the in progress label Feb 11, 2019

Copy link
Copy Markdown
Contributor

test package_version#rc

1 similar comment

Copy link
Copy Markdown
Contributor

test package_version#rc

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

lock Bot commented Feb 22, 2020

Copy link
Copy Markdown

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 Bot locked and limited conversation to collaborators Feb 22, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL