mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +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:
@ -5,19 +5,19 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
/// @prop - Font size of the textarea
|
||||
$textarea-ios-font-size: inherit !default;
|
||||
$textarea-ios-font-size: inherit;
|
||||
|
||||
/// @prop - Margin top of the textarea
|
||||
$textarea-ios-padding-top: $item-ios-padding-top !default;
|
||||
$textarea-ios-padding-top: $item-ios-padding-top;
|
||||
|
||||
/// @prop - Margin end of the textarea
|
||||
$textarea-ios-padding-end: ($item-ios-padding-end * 0.5) !default;
|
||||
$textarea-ios-padding-end: ($item-ios-padding-end * 0.5);
|
||||
|
||||
/// @prop - Margin bottom of the textarea
|
||||
$textarea-ios-padding-bottom: $item-ios-padding-bottom !default;
|
||||
$textarea-ios-padding-bottom: $item-ios-padding-bottom;
|
||||
|
||||
/// @prop - Margin start of the textarea
|
||||
$textarea-ios-padding-start: 0 !default;
|
||||
$textarea-ios-padding-start: 0;
|
||||
|
||||
/// @prop - The opacity of the input text, label, helper text, char counter and placeholder of a disabled textarea
|
||||
$textarea-ios-disabled-opacity: $form-control-ios-disabled-opacity !default;
|
||||
$textarea-ios-disabled-opacity: $form-control-ios-disabled-opacity;
|
||||
|
||||
@ -5,22 +5,22 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
/// @prop - Font size of the textarea
|
||||
$textarea-md-font-size: inherit !default;
|
||||
$textarea-md-font-size: inherit;
|
||||
|
||||
/// @prop - Margin top of the textarea
|
||||
$textarea-md-padding-top: $item-md-padding-top !default;
|
||||
$textarea-md-padding-top: $item-md-padding-top;
|
||||
|
||||
/// @prop - Margin end of the textarea
|
||||
$textarea-md-padding-end: 0 !default;
|
||||
$textarea-md-padding-end: 0;
|
||||
|
||||
/// @prop - Margin bottom of the textarea
|
||||
$textarea-md-padding-bottom: $item-md-padding-bottom !default;
|
||||
$textarea-md-padding-bottom: $item-md-padding-bottom;
|
||||
|
||||
/// @prop - Margin start of the textarea
|
||||
$textarea-md-padding-start: ($item-md-padding-start * 0.5) !default;
|
||||
$textarea-md-padding-start: ($item-md-padding-start * 0.5);
|
||||
|
||||
/// @prop - The amount of whitespace to display on either side of the floating label
|
||||
$textarea-md-floating-label-padding: 4px !default;
|
||||
$textarea-md-floating-label-padding: 4px;
|
||||
|
||||
/// @prop - The opacity of the input text, label, helper text, char counter and placeholder of a disabled textarea
|
||||
$textarea-md-disabled-opacity: $form-control-md-disabled-opacity !default;
|
||||
$textarea-md-disabled-opacity: $form-control-md-disabled-opacity;
|
||||
|
||||
@ -2,4 +2,4 @@
|
||||
|
||||
/// @prop - The bottom padding of the textarea element.
|
||||
/// The value 8px is to add additional spacing for auto grow and scrollable textareas.
|
||||
$textarea-padding-bottom: 8px !default;
|
||||
$textarea-padding-bottom: 8px;
|
||||
|
||||
Reference in New Issue
Block a user