Skip to content

Commit 91ca753

Browse files
- fix has-focus state for ion-valid and ion-invalid;
1 parent 14735e8 commit 91ca753

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@
6060
margin-top: globals.$ion-space-100;
6161
}
6262

63+
// Focus
64+
// ----------------------------------------------------------------
65+
66+
:host(.textarea-fill-outline.has-focus.ion-valid),
67+
:host(.textarea-fill-outline.ion-touched.ion-invalid) {
68+
--border-color: var(--highlight-color);
69+
}
70+
6371
// Ionic Textarea - Readonly
6472
// ----------------------------------------------------------------
6573

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@
3535
--border-color: #{globals.$ion-border-focus-default};
3636
}
3737

38-
:host(.textarea-fill-solid.has-focus.ion-valid) {
38+
:host(.textarea-fill-solid.has-focus.ion-valid),
39+
:host(.textarea-fill-solid.ion-touched.ion-invalid) {
40+
3941
--border-width: #{globals.$ion-border-size-050};
42+
--border-color: var(--highlight-color);
4043
}
4144

4245
// Ionic Textarea - Readonly

0 commit comments

Comments
 (0)