chore(theming): remove Sass default flags (#29401)

Issue number: N/A

---------

## What is the current behavior?
Currently, every Sass variable in Ionic has the `!default` flag added to
the end.

From the [Sass variables
documentation](https://sass-lang.com/documentation/variables/):

> Normally when you assign a value to a variable, if that variable
already had a value, its old value is overwritten. But if you’re writing
a Sass library, you might want to allow your users to configure your
library’s variables before you use them to generate CSS.
> 
> To make this possible, Sass provides the `!default` flag. This assigns
a value to a variable only if that variable isn’t defined or its value
is [null](https://sass-lang.com/documentation/values/null). Otherwise,
the existing value will be used.

In past versions of Ionic Framework, developers wrote Sass variables to
rebuild Ionic Framework using their own values. In the latest versions
of Ionic Framework, this is not possible.

## What is the new behavior?
Removes the `!default` flag from all Sass variables.

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

-------

Co-authored-by: brandyscarney <brandyscarney@users.noreply.github.com>
This commit is contained in:
Liam DeBeasi
2024-04-25 15:59:10 -04:00
committed by GitHub
parent 0873dc2ffb
commit 6e8bf4914f
127 changed files with 1301 additions and 1301 deletions

View File

@ -4,46 +4,46 @@
// --------------------------------------------------
/// @prop - Font size of the loading wrapper
$loading-ios-font-size: dynamic-font(14px) !default;
$loading-ios-font-size: dynamic-font(14px);
/// @prop - Padding top of the loading wrapper
$loading-ios-padding-top: 24px !default;
$loading-ios-padding-top: 24px;
/// @prop - Padding end of the loading wrapper
$loading-ios-padding-end: 34px !default;
$loading-ios-padding-end: 34px;
/// @prop - Padding bottom of the loading wrapper
$loading-ios-padding-bottom: $loading-ios-padding-top !default;
$loading-ios-padding-bottom: $loading-ios-padding-top;
/// @prop - Padding start of the loading wrapper
$loading-ios-padding-start: $loading-ios-padding-end !default;
$loading-ios-padding-start: $loading-ios-padding-end;
/// @prop - Max width of the loading wrapper
$loading-ios-max-width: 270px !default;
$loading-ios-max-width: 270px;
/// @prop - Maximum height of the loading wrapper
$loading-ios-max-height: 90% !default;
$loading-ios-max-height: 90%;
/// @prop - Border radius of the loading wrapper
$loading-ios-border-radius: 8px !default;
$loading-ios-border-radius: 8px;
/// @prop - Text color of the loading wrapper
$loading-ios-text-color: $text-color !default;
$loading-ios-text-color: $text-color;
/// @prop - Background of the loading wrapper
$loading-ios-background-color: $overlay-ios-background-color !default;
$loading-ios-background-color: $overlay-ios-background-color;
/// @prop - Background color alpha of the translucent loading wrapper
$loading-ios-translucent-background-color-alpha: .8 !default;
$loading-ios-translucent-background-color-alpha: .8;
/// @prop - Background color of the translucent loading wrapper
$loading-ios-translucent-background-color: rgba($background-color-rgb, $loading-ios-translucent-background-color-alpha) !default;
$loading-ios-translucent-background-color: rgba($background-color-rgb, $loading-ios-translucent-background-color-alpha);
/// @prop - Font weight of the loading content
$loading-ios-content-font-weight: bold !default;
$loading-ios-content-font-weight: bold;
/// @prop - Color of the loading spinner
$loading-ios-spinner-color: $text-color-step-400 !default;
$loading-ios-spinner-color: $text-color-step-400;
/// @prop - Filter of the translucent loading
$loading-ios-translucent-filter: saturate(180%) blur(20px) !default;
$loading-ios-translucent-filter: saturate(180%) blur(20px);

View File

@ -4,40 +4,40 @@
// --------------------------------------------------
/// @prop - Font size of the loading wrapper
$loading-md-font-size: dynamic-font(14px) !default;
$loading-md-font-size: dynamic-font(14px);
/// @prop - Padding top of the loading wrapper
$loading-md-padding-top: 24px !default;
$loading-md-padding-top: 24px;
/// @prop - Padding end of the loading wrapper
$loading-md-padding-end: $loading-md-padding-top !default;
$loading-md-padding-end: $loading-md-padding-top;
/// @prop - Padding bottom of the loading wrapper
$loading-md-padding-bottom: $loading-md-padding-top !default;
$loading-md-padding-bottom: $loading-md-padding-top;
/// @prop - Padding start of the loading wrapper
$loading-md-padding-start: $loading-md-padding-end !default;
$loading-md-padding-start: $loading-md-padding-end;
/// @prop - Max width of the loading wrapper
$loading-md-max-width: 280px !default;
$loading-md-max-width: 280px;
/// @prop - Maximum height of the loading wrapper
$loading-md-max-height: 90% !default;
$loading-md-max-height: 90%;
/// @prop - Border radius of the loading wrapper
$loading-md-border-radius: 2px !default;
$loading-md-border-radius: 2px;
/// @prop - Text color of the loading wrapper
$loading-md-text-color: $text-color-step-150 !default;
$loading-md-text-color: $text-color-step-150;
/// @prop - Background of the loading wrapper
$loading-md-background: $background-color-step-50 !default;
$loading-md-background: $background-color-step-50;
/// @prop - Box shadow color of the loading wrapper
$loading-md-box-shadow-color: rgba(0, 0, 0, .4) !default;
$loading-md-box-shadow-color: rgba(0, 0, 0, .4);
/// @prop - Box shadow of the loading wrapper
$loading-md-box-shadow: 0 16px 20px $loading-md-box-shadow-color !default;
$loading-md-box-shadow: 0 16px 20px $loading-md-box-shadow-color;
/// @prop - Color of the loading spinner
$loading-md-spinner-color: ion-color(primary, base) !default;
$loading-md-spinner-color: ion-color(primary, base);