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,19 +5,19 @@
// --------------------------------------------------
/// @prop - Background color of focus indicator for radio when focused
$radio-ios-background-color-focused: ion-color(primary, tint) !default;
$radio-ios-background-color-focused: ion-color(primary, tint);
/// @prop - Width of the radio icon
$radio-ios-icon-width: dynamic-font(15px) !default;
$radio-ios-icon-width: dynamic-font(15px);
/// @prop - Height of the radio icon
$radio-ios-icon-height: dynamic-font(24px) !default;
$radio-ios-icon-height: dynamic-font(24px);
/// @prop - Border width of the radio icon
$radio-ios-icon-border-width: dynamic-font(2px) !default;
$radio-ios-icon-border-width: dynamic-font(2px);
/// @prop - Border style of the radio icon
$radio-ios-icon-border-style: solid !default;
$radio-ios-icon-border-style: solid;
/// @prop - Opacity of the disabled radio
$radio-ios-disabled-opacity: $form-control-ios-disabled-opacity !default;
$radio-ios-disabled-opacity: $form-control-ios-disabled-opacity;

View File

@ -5,37 +5,37 @@
// --------------------------------------------------
/// @prop - Color of the checked radio
$radio-md-color-on: current-color(base) !default;
$radio-md-color-on: current-color(base);
/// @prop - Background color of focus indicator for radio when focused
$radio-md-background-color-focused: ion-color(primary, tint) !default;
$radio-md-background-color-focused: ion-color(primary, tint);
/// @prop - Color of the unchecked radio
$radio-md-color-off: rgb($text-color-rgb, 0.60) !default;
$radio-md-color-off: rgb($text-color-rgb, 0.60);
/// @prop - Width of the radio icon
$radio-md-icon-width: dynamic-font(20px) !default;
$radio-md-icon-width: dynamic-font(20px);
/// @prop - Height of the radio icon
$radio-md-icon-height: dynamic-font(20px) !default;
$radio-md-icon-height: dynamic-font(20px);
/// @prop - Border width of the radio icon
$radio-md-icon-border-width: dynamic-font(2px) !default;
$radio-md-icon-border-width: dynamic-font(2px);
/// @prop - Border style of the radio icon
$radio-md-icon-border-style: solid !default;
$radio-md-icon-border-style: solid;
/// @prop - Border radius of the radio icon
$radio-md-icon-border-radius: 50% !default;
$radio-md-icon-border-radius: 50%;
/// @prop - Transition duration of the radio
$radio-md-transition-duration: 280ms !default;
$radio-md-transition-duration: 280ms;
/// @prop - Transition easing of the radio
$radio-md-transition-easing: cubic-bezier(.4, 0, .2, 1) !default;
$radio-md-transition-easing: cubic-bezier(.4, 0, .2, 1);
/// @prop - Opacity of the disabled radio label
$radio-md-disabled-opacity: $form-control-md-disabled-opacity !default;
$radio-md-disabled-opacity: $form-control-md-disabled-opacity;
/// @prop - Opacity of the disabled radio
/// This value is used because the radio color is set to
@ -44,4 +44,4 @@ $radio-md-disabled-opacity: $form-control-md-disabled-opacity !default;
/// opacity is applied on top of the transparent color so
/// this opacity gets us the equivalent of applying `0.38`
/// on top of an opaque radio `rgb(0, 0, 0, 1.0)`
$radio-md-icon-disabled-opacity: 0.63 !default;
$radio-md-icon-disabled-opacity: 0.63;

View File

@ -1,5 +1,5 @@
/// @prop - Top margin of radio's label when in an item
$radio-item-label-margin-top: 10px !default;
$radio-item-label-margin-top: 10px;
/// @prop - Bottom margin of radio's label when in an item
$radio-item-label-margin-bottom: 10px !default;
$radio-item-label-margin-bottom: 10px;