3
3
// iOS Label
4
4
// --------------------------------------------------
5
5
6
+ /// @prop - Text color of the label by an input, select, or datetime
7
+ $label-ios-text-color : unset !default ;
8
+
9
+ /// @prop - Text color of the stacked/floating label when it is focused
10
+ $label-ios-text-color-focused : unset !default ;
11
+
6
12
/// @prop - Margin of the label
7
- $label-ios-margin : $item-ios-padding-top ($item-ios-padding-right / 2 ) $item-ios-padding-bottom 0 !default ;
13
+ $label-ios-margin : $item-ios-padding-top ($item-ios-padding-right / 2 ) $item-ios-padding-bottom 0 !default ;
8
14
9
15
10
16
// iOS Default Label
@@ -18,6 +24,16 @@ $label-ios-margin: $item-ios-padding-top ($item-ios-padding-right /
18
24
// iOS Default Label Inside An Input/Select Item
19
25
// --------------------------------------------------
20
26
27
+ .item-input .label-ios ,
28
+ .item-select .label-ios ,
29
+ .item-datetime .label-ios {
30
+ color : $label-ios-text-color ;
31
+ }
32
+
33
+
34
+ // iOS Input By Label
35
+ // --------------------------------------------------
36
+
21
37
.label-ios + ion-input .text-input ,
22
38
.label-ios + ion-textarea .text-input ,
23
39
.label-ios + .input + .cloned-input {
@@ -59,6 +75,11 @@ $label-ios-margin: $item-ios-padding-top ($item-ios-padding-right /
59
75
margin-bottom : $item-ios-padding-media-bottom - 2 ;
60
76
}
61
77
78
+ .input-has-focus .label-ios [stacked ],
79
+ .input-has-focus .label-ios [floating ] {
80
+ color : $label-ios-text-color-focused ;
81
+ }
82
+
62
83
63
84
// Generate iOS Label colors
64
85
// --------------------------------------------------
0 commit comments