Skip to content

Commit

Permalink
chore: add new theme system warning (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnixaa authored Mar 29, 2019
1 parent 77b737d commit 84349ef
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/framework/theme/styles/_theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

@import 'core/mixins';
@import 'core/functions';
@import 'core/breaking-notice';

$nb-enabled-themes: () !global;
$nb-enable-css-variables: false !global;
Expand Down Expand Up @@ -187,4 +188,6 @@ $nb-themes-export: () !global;
@content;
}
}

$temp: nb-breaking-notice-show($theme);
}
25 changes: 25 additions & 0 deletions src/framework/theme/styles/core/_breaking-notice.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
$nb-breaking-notice-enable: true !global;

@function nb-breaking-notice-show($theme) {

@debug '$nb-breaking-notice-enable';
@debug $nb-breaking-notice-enable;
@debug '$nb-breaking-notice-enable';

@if($nb-breaking-notice-enable) {
/* stylelint-disable string-no-newline */
@warn '
🔥 🔥 🔥 🔥 🔥 🔥 Nebular Attention 🔥 🔥 🔥 🔥 🔥 🔥
Starting with version 4.0, Nebular will be upgrading its Theme System.
If you use CUSTOM Nebular THEMES
please LET US KNOW AT http://bit.ly/2THkjSE
To supress this warning set $nebular-breaking-notice-enable: false; right before nb-install-global() call.
🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥 🔥';
}
/* stylelint-enable */
@return true;
}

0 comments on commit 84349ef

Please sign in to comment.