Skip to content

Commit

Permalink
fix(label): add the $label-ios-text-color sass variables back
Browse files Browse the repository at this point in the history
adds better descriptions for the sass variables in the other modes

resolves #11373
  • Loading branch information
brandyscarney committed Apr 28, 2017
1 parent 20b7ab7 commit 588fad8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
23 changes: 22 additions & 1 deletion src/components/label/label.ios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand Down Expand Up @@ -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
// --------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions src/components/label/label.md.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/components/label/label.wp.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down

0 comments on commit 588fad8

Please sign in to comment.