mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
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:
@ -1,16 +1,16 @@
|
||||
@import "../../themes/ionic.globals.ios";
|
||||
|
||||
/// @prop - Color of the refresher icon
|
||||
$refresher-ios-icon-color: $text-color !default;
|
||||
$refresher-ios-icon-color: $text-color;
|
||||
|
||||
/// @prop - Text color of the refresher content
|
||||
$refresher-ios-text-color: $text-color !default;
|
||||
$refresher-ios-text-color: $text-color;
|
||||
|
||||
/// @prop - Color of the native refresher spinner
|
||||
$refresher-ios-native-spinner-color: var(--ion-color-step-450, var(--ion-background-color-step-450, #747577)) !default;
|
||||
$refresher-ios-native-spinner-color: var(--ion-color-step-450, var(--ion-background-color-step-450, #747577));
|
||||
|
||||
/// @prop - Width of the native refresher spinner
|
||||
$refresher-ios-native-spinner-width: 32px !default;
|
||||
$refresher-ios-native-spinner-width: 32px;
|
||||
|
||||
/// @prop - Height of the native refresher spinner
|
||||
$refresher-ios-native-spinner-height: 32px !default;
|
||||
$refresher-ios-native-spinner-height: 32px;
|
||||
|
||||
@ -1,19 +1,19 @@
|
||||
@import "../../themes/ionic.globals.md";
|
||||
|
||||
/// @prop - Color of the refresher icon
|
||||
$refresher-md-icon-color: $text-color !default;
|
||||
$refresher-md-icon-color: $text-color;
|
||||
|
||||
/// @prop - Text color of the refresher content
|
||||
$refresher-md-text-color: $text-color !default;
|
||||
$refresher-md-text-color: $text-color;
|
||||
|
||||
/// @prop - Color of the native refresher spinner
|
||||
$refresher-md-native-spinner-color: #{ion-color(primary, base)} !default;
|
||||
$refresher-md-native-spinner-color: #{ion-color(primary, base)};
|
||||
|
||||
/// @prop - Border of the native refresher spinner
|
||||
$refresher-md-native-spinner-border: 1px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #ececec)) !default;
|
||||
$refresher-md-native-spinner-border: 1px solid var(--ion-color-step-200, var(--ion-background-color-step-200, #ececec));
|
||||
|
||||
/// @prop - Background of the native refresher spinner
|
||||
$refresher-md-native-spinner-background: var(--ion-color-step-250, var(--ion-background-color-step-250, #ffffff)) !default;
|
||||
$refresher-md-native-spinner-background: var(--ion-color-step-250, var(--ion-background-color-step-250, #ffffff));
|
||||
|
||||
/// @prop - Box shadow of the native refresher spinner
|
||||
$refresher-md-native-spinner-box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.1) !default;
|
||||
$refresher-md-native-spinner-box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.1);
|
||||
|
||||
@ -2,10 +2,10 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
/// @prop - Height of the refresher
|
||||
$refresher-height: 60px !default;
|
||||
$refresher-height: 60px;
|
||||
|
||||
/// @prop - Font size of the refresher icon
|
||||
$refresher-icon-font-size: 30px !default;
|
||||
$refresher-icon-font-size: 30px;
|
||||
|
||||
/// @prop - Font size of the refresher content
|
||||
$refresher-text-font-size: 16px !default;
|
||||
$refresher-text-font-size: 16px;
|
||||
|
||||
Reference in New Issue
Block a user