Skip to content

Commit 7ea7074

Browse files
- reorganize fill vars
1 parent bbf79fd commit 7ea7074

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@use "../../themes/ionic/ionic.globals.scss" as globals;
2+
3+
:host(.input-fill-outline) {
4+
--background: #{globals.$ion-primitives-base-white};
5+
--border-color: #{globals.$ion-primitives-neutral-500};
6+
}

core/src/components/input/input.ionic.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
@use "../../themes/ionic/ionic.globals.scss" as globals;
22
@use "./input.common";
3+
@forward "./input.ionic.outline.scss";
34
@forward "./input.ionic.solid.scss";
45
// Ionic Input
56
// --------------------------------------------------
67

78
:host {
89
--color: #{globals.$ion-primitives-neutral-1200};
910
--border-width: #{globals.$ion-border-size-025};
10-
--border-color: #{globals.$ion-primitives-neutral-500};
1111
--border-radius: #{globals.$ion-border-radius-100};
1212
--highlight-color-valid: #{globals.$ion-semantics-success-900};
1313
--highlight-color-invalid: #{globals.$ion-border-danger-default};
1414
--padding-start: #{globals.$ion-space-300};
1515
--padding-end: #{globals.$ion-space-300};
1616
--placeholder-color: #{globals.$ion-primitives-neutral-800};
1717
--placeholder-opacity: 1;
18-
--background: #{globals.$ion-primitives-base-white};
1918

2019
@include globals.typography(globals.$ion-body-md-regular);
2120
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* If the input has a validity state, the
1212
* border should reflect that as a color.
1313
*/
14-
:host(.has-focus.input-fill-solid.ion-valid) .native-wrapper,
14+
:host(.input-fill-solid.has-focus.ion-valid) .native-wrapper,
1515
:host(.input-fill-solid.ion-touched.ion-invalid) .native-wrapper {
1616
--border-color: var(--highlight-color);
1717
}

0 commit comments

Comments
 (0)