Skip to content

Commit 11b08dc

Browse files
- improvements on scss;
1 parent 77ca2ba commit 11b08dc

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

core/src/components/textarea/textarea.ionic.outline.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@
6060
margin-top: globals.$ion-space-100;
6161
}
6262

63-
// Input Focus
63+
// Ionic Textarea - Readonly
6464
// ----------------------------------------------------------------
6565

66-
:host(.textarea-fill-outline.has-focus) {
67-
--border-width: #{globals.$ion-border-size-050};
68-
}
66+
:host(.textarea-fill-outline.textarea-readonly) {
67+
--border-color: #{globals.$ion-border-input-default};
68+
--border-width: #{globals.$ion-border-size-025};
69+
}

core/src/components/textarea/textarea.ionic.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ ion-icon {
178178

179179
:host(.has-focus) {
180180
--border-color: #{globals.$ion-border-focus-default};
181+
--border-width: #{globals.$ion-border-size-050};
182+
181183
}
182184

183185
:host(.has-focus) .textarea-highlight {

core/src/components/textarea/textarea.ionic.solid.scss

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
:host(.textarea-fill-solid) {
77
--border-color: #{globals.$ion-bg-input-bold-default};
8+
--border-width: #{globals.$ion-border-size-050};
89
--background: #{globals.$ion-bg-input-bold-default};
910
}
1011

@@ -15,8 +16,6 @@
1516
}
1617

1718
:host(.textarea-fill-solid) .textarea-wrapper-inner {
18-
--border-width: #{globals.$ion-border-size-050};
19-
2019
@include globals.border-radius(var(--border-radius));
2120
position: relative;
2221

@@ -25,15 +24,21 @@
2524
background: var(--background);
2625
}
2726

27+
:host(.textarea-fill-solid) .textarea-bottom {
28+
--border-width: #{globals.$ion-scale-0};
29+
}
2830

2931
// Focus
3032
// ----------------------------------------------------------------
3133

3234
:host(.textarea-fill-solid.has-focus) {
33-
--border-width: #{globals.$ion-border-size-050};
3435
--border-color: #{globals.$ion-border-focus-default};
3536
}
3637

38+
:host(.textarea-fill-solid.has-focus.ion-valid){
39+
--border-width: #{globals.$ion-border-size-050};
40+
}
41+
3742
// Ionic Textarea - Readonly
3843
// ----------------------------------------------------------------
3944

@@ -50,8 +55,6 @@
5055
// ----------------------------------------------------------------
5156

5257
:host(.textarea-fill-solid.textarea-disabled) {
53-
--color: #{globals.$ion-text-disabled};
5458
--background: #{globals.$ion-bg-input-bold-disabled};
5559
--border-color: #{globals.$ion-bg-input-bold-disabled};
56-
--placeholder-color: #{globals.$ion-text-disabled};
5760
}

0 commit comments

Comments
 (0)