Skip to content

Commit

Permalink
Export CSS variables to .ns-modal
Browse files Browse the repository at this point in the history
Update CHANGELOG and README
Up the version
  • Loading branch information
bundyo committed Sep 13, 2019
1 parent 06ea424 commit 22e71fe
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<a name="2.0.19 beta"></a>
## [2.0.19 beta](https://github.com/NativeScript/theme/compare/v2.0.18...v2.0.19) (2019-09-12)

### Features

* Export CSS variables to .ns-modal too

<a name="2.0.18 beta"></a>
## [2.0.18 beta](https://github.com/NativeScript/theme/compare/v2.0.17...v2.0.18) (2019-09-12)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ the focus color (the accent) according to it.

## CSS Variables

Since 2.0.17 beta, the Theme now exports all its internal variables to CSS ones in the .ns-root class.
Since 2.0.17 beta, the Theme now exports all its internal variables to CSS ones in the .ns-root and .ns-modal classes.
This is also done for Kendo based skins. You can use them to inherit your styles from the Theme.
A list of the supported CSS variables follows:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-theme-core",
"version": "2.0.18",
"version": "2.0.19",
"description": "Telerik NativeScript Core Theme",
"author": "Telerik <[email protected]>",
"homepage": "https://www.nativescript.org",
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-theme-core",
"version": "2.0.17",
"version": "2.0.19",
"description": "Telerik NativeScript Core Theme",
"author": "Telerik <[email protected]>",
"main": "index",
Expand Down
3 changes: 2 additions & 1 deletion src/scss/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

// export each map to CSS custom variables

.ns-root {
.ns-root,
.ns-modal {
@each $name in map-keys($colors) {
--color-#{"" + $name}: #{color($name)};
}
Expand Down

0 comments on commit 22e71fe

Please sign in to comment.