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

@ -5,13 +5,13 @@
// --------------------------------------------------
/// @prop - Text color of the stacked/floating label when it is focused
$label-ios-text-color-focused: null !default;
$label-ios-text-color-focused: null;
/// @prop - Font size of the label when the text wraps
$label-ios-text-wrap-font-size: dynamic-font(14px) !default;
$label-ios-text-wrap-font-size: dynamic-font(14px);
/// @prop - Line height of the label when the text wraps
$label-ios-text-wrap-line-height: 1.5 !default;
$label-ios-text-wrap-line-height: 1.5;
/// @prop - Color of the item paragraph
$item-ios-paragraph-text-color: $text-color-step-600 !default;
$item-ios-paragraph-text-color: $text-color-step-600;

View File

@ -5,10 +5,10 @@
// --------------------------------------------------
/// @prop - Text color of the stacked/floating label when it is focused
$label-md-text-color-focused: ion-color(primary, base) !default;
$label-md-text-color-focused: ion-color(primary, base);
/// @prop - Line height of the label when the text wraps
$label-md-text-wrap-line-height: 1.5 !default;
$label-md-text-wrap-line-height: 1.5;
/// @prop - Transition timing function of the label (stacked / focused)
$label-md-transition-timing-function: cubic-bezier(.4, 0, .2, 1) !default;
$label-md-transition-timing-function: cubic-bezier(.4, 0, .2, 1);