mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(label): add the $label-ios-text-color sass variables back
adds better descriptions for the sass variables in the other modes resolves #11373
This commit is contained in:
@ -3,8 +3,14 @@
|
||||
// iOS Label
|
||||
// --------------------------------------------------
|
||||
|
||||
/// @prop - Text color of the label by an input, select, or datetime
|
||||
$label-ios-text-color: unset !default;
|
||||
|
||||
/// @prop - Text color of the stacked/floating label when it is focused
|
||||
$label-ios-text-color-focused: unset !default;
|
||||
|
||||
/// @prop - Margin of the label
|
||||
$label-ios-margin: $item-ios-padding-top ($item-ios-padding-right / 2) $item-ios-padding-bottom 0 !default;
|
||||
$label-ios-margin: $item-ios-padding-top ($item-ios-padding-right / 2) $item-ios-padding-bottom 0 !default;
|
||||
|
||||
|
||||
// iOS Default Label
|
||||
@ -18,6 +24,16 @@ $label-ios-margin: $item-ios-padding-top ($item-ios-padding-right /
|
||||
// iOS Default Label Inside An Input/Select Item
|
||||
// --------------------------------------------------
|
||||
|
||||
.item-input .label-ios,
|
||||
.item-select .label-ios,
|
||||
.item-datetime .label-ios {
|
||||
color: $label-ios-text-color;
|
||||
}
|
||||
|
||||
|
||||
// iOS Input By Label
|
||||
// --------------------------------------------------
|
||||
|
||||
.label-ios + ion-input .text-input,
|
||||
.label-ios + ion-textarea .text-input,
|
||||
.label-ios + .input + .cloned-input {
|
||||
@ -59,6 +75,11 @@ $label-ios-margin: $item-ios-padding-top ($item-ios-padding-right /
|
||||
margin-bottom: $item-ios-padding-media-bottom - 2;
|
||||
}
|
||||
|
||||
.input-has-focus .label-ios[stacked],
|
||||
.input-has-focus .label-ios[floating] {
|
||||
color: $label-ios-text-color-focused;
|
||||
}
|
||||
|
||||
|
||||
// Generate iOS Label colors
|
||||
// --------------------------------------------------
|
||||
|
@ -3,10 +3,10 @@
|
||||
// Material Design Label
|
||||
// --------------------------------------------------
|
||||
|
||||
/// @prop - Text color of the label
|
||||
/// @prop - Text color of the label by an input, select, or datetime
|
||||
$label-md-text-color: #999 !default;
|
||||
|
||||
/// @prop - Text color of the label when it has focused
|
||||
/// @prop - Text color of the stacked/floating label when it is focused
|
||||
$label-md-text-color-focused: color($colors-md, primary) !default;
|
||||
|
||||
/// @prop - Margin of the label
|
||||
|
@ -3,10 +3,10 @@
|
||||
// Windows Label
|
||||
// --------------------------------------------------
|
||||
|
||||
/// @prop - Text color of the label
|
||||
/// @prop - Text color of the label by an input, select, or datetime
|
||||
$label-wp-text-color: #999 !default;
|
||||
|
||||
/// @prop - Text color of the label when it has focused
|
||||
/// @prop - Text color of the stacked/floating label when it is focused
|
||||
$label-wp-text-color-focused: color($colors-wp, primary) !default;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user