chore(scss): remove injected global styles (#26469)

this commit removes a globally injected style, `ionic.skip-warns.scss`,
from the project. this stylesheet was used to set a variable, `$Ionic`,
that would turn on/off deprecation warnings in (the also removed)
`ionic.deprecation.scss`. any file using either of the aforementioned
files have been updated.

this change is occurring while the stencil team is looking to improve
the size of generated components that use >1 mode. this deprecation was
a part of an initiative to remove sass source files from artifact
published to npm. while that was completed, this deprecation was not
removed (until now)

Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
This commit is contained in:
Ryan Waskiewicz
2022-12-13 08:34:25 -05:00
committed by GitHub
parent df6e8b7578
commit 16dcd2d114
16 changed files with 2 additions and 27 deletions

View File

@ -1,4 +1,3 @@
@import "../themes/ionic.skip-warns.scss";
@import "../themes/ionic.globals";
@import "../components/menu/menu.ios.vars";
@import "../components/menu/menu.md.vars";

View File

@ -1,4 +1,3 @@
@import "../themes/ionic.skip-warns.scss";
@import "../themes/ionic.globals";
@import "../themes/ionic.mixins";

View File

@ -1,4 +1,3 @@
@import "../themes/ionic.skip-warns.scss";
@import "../themes/ionic.globals";
@import "../themes/ionic.mixins";

View File

@ -1,4 +1,3 @@
@import "../themes/ionic.skip-warns.scss";
@import "../components/slides/slides.ios.vars.scss";
// Slides

View File

@ -1,4 +1,3 @@
@import "../themes/ionic.skip-warns.scss";
@import "../themes/ionic.globals";
@import "../themes/ionic.mixins";
@ -128,4 +127,4 @@ $margin: var(--ion-margin, 16px);
--margin-end: #{$margin};
@include margin-horizontal($margin);
}
}

View File

@ -1,4 +1,3 @@
@import "../themes/ionic.skip-warns.scss";
@import "../themes/ionic.globals";
@import "../themes/ionic.mixins";

View File

@ -1,4 +1,3 @@
@import "../themes/ionic.skip-warns.scss";
@import "../themes/ionic.globals";
@import "../themes/ionic.mixins";

View File

@ -1,4 +1,3 @@
@import "../themes/ionic.skip-warns.scss";
@import "../themes/ionic.globals";
@import "../themes/ionic.mixins";

View File

@ -1,4 +1,3 @@
@import "../themes/ionic.skip-warns.scss";
@import "../themes/ionic.globals";
@import "../themes/ionic.mixins";

View File

@ -1,5 +0,0 @@
$IONIC: false !default;
@if not $IONIC {
@warn "[DEPRECATED] SCSS within ionic/core should not be imported. Next major release will remove all scss support.";
}

View File

@ -1,5 +1,3 @@
@import "./ionic.deprecation";
// Gets the active color's css variable from a variation. Alpha is optional.
// --------------------------------------------------------------------------------------------
// Example usage:

View File

@ -1,5 +1,3 @@
@import "./ionic.deprecation";
// String Utility Functions
// --------------------------------------------------------------------------------

View File

@ -1,5 +1,3 @@
@import "./ionic.deprecation";
@mixin input-cover() {
@include position(0, null, null, 0);
@include margin(0);

View File

@ -1 +0,0 @@
$IONIC: true;

View File

@ -1,5 +1,3 @@
@import "./ionic.deprecation";
// Ionic Theme
// -------------------------------------------------------------------------------------------
// This file contains the theme variables shared

View File

@ -58,9 +58,7 @@ export const config: Config = {
{ components: ['ion-breadcrumb', 'ion-breadcrumbs'] },
],
plugins: [
sass({
injectGlobalPaths: ['src/themes/ionic.skip-warns.scss']
})
sass(),
],
outputTargets: [
reactOutputTarget({