File tree 14 files changed +72
-34
lines changed
input/theming/css-properties
14 files changed +72
-34
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,4 @@ ion-input.custom {
10
10
--padding-start : 10px ;
11
11
--padding-top : 10px ;
12
12
}
13
-
14
- ion-input .custom .helper-text ,
15
- ion-input .custom .counter {
16
- color : var (--ion-color-step-700 , #373737 );
17
- }
18
13
```
Original file line number Diff line number Diff line change
1
+ ``` css
2
+ /* *
3
+ * Since we are styling elements inside of ion-input
4
+ * we need to move this CSS to a global stylesheet. Otherwise,
5
+ * Angular components with encapsulation enabled will add
6
+ * scoped style attributes to these selectors.
7
+ */
8
+ ion-input .custom.ios .input-bottom .helper-text ,
9
+ ion-input .custom.ios .input-bottom .counter ,
10
+ ion-input .custom.md .input-bottom .helper-text ,
11
+ ion-input .custom.md .input-bottom .counter {
12
+ color : var (--ion-color-primary );
13
+ }
14
+ ```
Original file line number Diff line number Diff line change 27
27
--padding-top : 10px ;
28
28
}
29
29
30
- ion-input .custom .helper-text ,
31
- ion-input .custom .counter {
32
- color : var (--ion-color-step-700 , # 373737 );
30
+ ion-input .custom .ios .input-bottom .helper-text ,
31
+ ion-input .custom .ios .input-bottom .counter ,
32
+ ion-input .custom .md .input-bottom .helper-text ,
33
+ ion-input .custom .md .input-bottom .counter {
34
+ color : var (--ion-color-primary );
33
35
}
34
36
</ style >
35
37
</ head >
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import vue from './vue.md';
9
9
10
10
import angular_example_component_html from './angular/example_component_html.md';
11
11
import angular_example_component_css from './angular/example_component_css.md';
12
+ import angular_global_css from './angular/global_css.md';
12
13
13
14
<Playground
14
15
version="7"
@@ -25,6 +26,7 @@ import angular_example_component_css from './angular/example_component_css.md';
25
26
files: {
26
27
'src/app/example.component.html': angular_example_component_html,
27
28
'src/app/example.component.css': angular_example_component_css,
29
+ 'src/global.css': angular_global_css,
28
30
},
29
31
},
30
32
}}
Original file line number Diff line number Diff line change 21
21
--padding-top : 10px ;
22
22
}
23
23
24
- ion-input .custom .helper-text ,
25
- ion-input .custom .counter {
26
- color : var (--ion-color-step-700 , #373737 );
24
+ ion-input .custom.ios .input-bottom .helper-text ,
25
+ ion-input .custom.ios .input-bottom .counter ,
26
+ ion-input .custom.md .input-bottom .helper-text ,
27
+ ion-input .custom.md .input-bottom .counter {
28
+ color : var (--ion-color-primary );
27
29
}
28
30
</style >
29
31
```
Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ ion-input.custom {
11
11
--padding-top : 10px ;
12
12
}
13
13
14
- ion-input .custom .helper-text ,
15
- ion-input .custom .counter {
16
- color : #373737 ;
14
+ ion-input .custom.ios .input-bottom .helper-text ,
15
+ ion-input .custom.ios .input-bottom .counter ,
16
+ ion-input .custom.md .input-bottom .helper-text ,
17
+ ion-input .custom.md .input-bottom .counter {
18
+ color : var (--ion-color-primary );
17
19
}
18
20
```
Original file line number Diff line number Diff line change 32
32
--padding-top : 10px ;
33
33
}
34
34
35
- ion-input .custom .helper-text ,
36
- ion-input .custom .counter {
37
- color : var (--ion-color-step-700 , #373737 );
35
+ ion-input .custom.ios .input-bottom .helper-text ,
36
+ ion-input .custom.ios .input-bottom .counter ,
37
+ ion-input .custom.md .input-bottom .helper-text ,
38
+ ion-input .custom.md .input-bottom .counter {
39
+ color : var (--ion-color-primary );
38
40
}
39
41
</style >
40
42
```
Original file line number Diff line number Diff line change @@ -7,9 +7,4 @@ ion-textarea.custom {
7
7
--placeholder-color : #ddd ;
8
8
--placeholder-opacity : 0.8 ;
9
9
}
10
-
11
- ion-textarea .custom .helper-text ,
12
- ion-textarea .custom .counter {
13
- color : #373737 ;
14
- }
15
10
```
Original file line number Diff line number Diff line change
1
+ ``` css
2
+ /* *
3
+ * Since we are styling elements inside of ion-textarea
4
+ * we need to move this CSS to a global stylesheet. Otherwise,
5
+ * Angular components with encapsulation enabled will add
6
+ * scoped style attributes to these selectors.
7
+ */
8
+ ion-textarea .custom.ios .textarea-bottom .helper-text ,
9
+ ion-textarea .custom.ios .textarea-bottom .counter ,
10
+ ion-textarea .custom.md .textarea-bottom .helper-text ,
11
+ ion-textarea .custom.md .textarea-bottom .counter {
12
+ color : var (--ion-color-primary );
13
+ }
14
+ ```
Original file line number Diff line number Diff line change 22
22
--placeholder-opacity : 0.8 ;
23
23
}
24
24
25
- ion-textarea .custom .helper-text ,
26
- ion-textarea .custom .counter {
27
- color : # 373737 ;
25
+ ion-textarea .custom .ios .textarea-bottom .helper-text ,
26
+ ion-textarea .custom .ios .textarea-bottom .counter ,
27
+ ion-textarea .custom .md .textarea-bottom .helper-text ,
28
+ ion-textarea .custom .md .textarea-bottom .counter {
29
+ color : var (--ion-color-primary );
28
30
}
29
31
</ style >
30
32
</ head >
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import vue from './vue.md';
9
9
10
10
import angular_example_component_html from './angular/example_component_html.md';
11
11
import angular_example_component_css from './angular/example_component_css.md';
12
+ import angular_global_css from './angular/global_css.md';
12
13
13
14
<Playground
14
15
version="7"
@@ -26,6 +27,7 @@ import angular_example_component_css from './angular/example_component_css.md';
26
27
files: {
27
28
'src/app/example.component.css': angular_example_component_css,
28
29
'src/app/example.component.html': angular_example_component_html,
30
+ 'src/global.css': angular_global_css,
29
31
},
30
32
},
31
33
}}
Original file line number Diff line number Diff line change 18
18
--placeholder-opacity : 0.8 ;
19
19
}
20
20
21
- ion-textarea .custom .helper-text ,
22
- ion-textarea .custom .counter {
23
- color : #373737 ;
21
+ ion-textarea .custom.ios .textarea-bottom .helper-text ,
22
+ ion-textarea .custom.ios .textarea-bottom .counter ,
23
+ ion-textarea .custom.md .textarea-bottom .helper-text ,
24
+ ion-textarea .custom.md .textarea-bottom .counter {
25
+ color : var (--ion-color-primary );
24
26
}
25
27
</style >
26
28
```
Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ ion-textarea.custom {
8
8
--placeholder-opacity : 0.8 ;
9
9
}
10
10
11
- ion-textarea .custom .helper-text ,
12
- ion-textarea .custom .counter {
13
- color : #373737 ;
11
+ ion-textarea .custom.ios .textarea-bottom .helper-text ,
12
+ ion-textarea .custom.ios .textarea-bottom .counter ,
13
+ ion-textarea .custom.md .textarea-bottom .helper-text ,
14
+ ion-textarea .custom.md .textarea-bottom .counter {
15
+ color : var (--ion-color-primary );
14
16
}
15
17
```
Original file line number Diff line number Diff line change 9
9
--placeholder-opacity : 0.8 ;
10
10
}
11
11
12
- ion-textarea .custom .helper-text ,
13
- ion-textarea .custom .counter {
14
- color : #373737 ;
12
+ ion-textarea .custom.ios .textarea-bottom .helper-text ,
13
+ ion-textarea .custom.ios .textarea-bottom .counter ,
14
+ ion-textarea .custom.md .textarea-bottom .helper-text ,
15
+ ion-textarea .custom.md .textarea-bottom .counter {
16
+ color : var (--ion-color-primary );
15
17
}
16
18
</style >
17
19
You can’t perform that action at this time.
0 commit comments