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

feat: apply styles when adding them to the application scope by vchimev · Pull Request #7652 · NativeScript/NativeScript · GitHub

feat: apply styles when adding them to the application scope - #7652

Merged
vchimev merged 3 commits into
masterfrom
vchimev/application-styles
Aug 13, 2019
Merged

vchimev merged 3 commits into
masterfrom
vchimev/application-styles

Conversation

vchimev commented Aug 7, 2019
edited
Loading

Copy link
Copy Markdown
Contributor

PR Checklist

What is the current behavior?

There are addCss() methods for Application and the ViewCommon class.

Currently, Application.addCss() does not execute _onCssStateChagne() as ViewCommon.addCss() does.

Therefore, the application styles scope updates, however, the added styles do not apply until navigation or _onCssStateChagne() executes.

What is the new behavior?

Application.addCss() to execute _onCssStateChagne().
In this way, it applies the added application styles immediately.

cla-bot Bot added the cla: yes label Aug 7, 2019
vchimev force-pushed the vchimev/application-styles branch 4 times, most recently from 392d1c4 to b0c047c Compare August 7, 2019 20:13
Currently, when adding styles to the application scope,
they do not apply until `_onCssStateChagne()` executes.
This is to verify that adding new application styles applies immediately.
The test needs to tap on the `#app` button and reuses the current image for verification.
vchimev force-pushed the vchimev/application-styles branch from b0c047c to 835067b Compare August 12, 2019 13:25
Move `styles-page` from `button` to `css` folder.
Add `css` suite and `styles` spec.
vchimev force-pushed the vchimev/application-styles branch from 835067b to 8f38474 Compare August 12, 2019 13:26
vchimev merged commit 1d12136 into master Aug 13, 2019
vchimev deleted the vchimev/application-styles branch August 13, 2019 13:10
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 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL