mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
fix(input): add focused state for ionic theme (#29342)
Co-authored-by: Amanda Johnston <90629384+amandaejohnston@users.noreply.github.com>
This commit is contained in:
@ -11,6 +11,8 @@
|
||||
--border-color: #{$ionic-color-neutral-300};
|
||||
--highlight-color-valid: #{$ionic-color-success-400};
|
||||
--highlight-color-invalid: #{$ionic-color-error-400};
|
||||
--placeholder-color: #{$ionic-color-neutral-500};
|
||||
--placeholder-opacity: 1;
|
||||
--text-color-invalid: #{$ionic-color-error-600};
|
||||
}
|
||||
|
||||
@ -91,6 +93,11 @@
|
||||
color: var(--text-color-invalid);
|
||||
}
|
||||
|
||||
:host(.has-focus.ion-valid),
|
||||
:host(.ion-touched.ion-invalid) {
|
||||
--border-width: #{tokens.$ionic-border-size-small};
|
||||
}
|
||||
|
||||
// Input Hover
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
@ -137,3 +144,11 @@
|
||||
:host(.input-disabled.ion-color) .helper-text {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
// Input Focus
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
:host(.has-focus) {
|
||||
--border-color: #{tokens.$ionic-color-primary};
|
||||
--border-width: #{tokens.$ionic-border-size-medium};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user