Skip to content

Commit 05dc23b

Browse files
- update variables;
- specify attributes by classes type;
1 parent 7ea7074 commit 05dc23b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
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};
14-
--padding-start: #{globals.$ion-space-300};
15-
--padding-end: #{globals.$ion-space-300};
1614
--placeholder-color: #{globals.$ion-primitives-neutral-800};
1715
--placeholder-opacity: 1;
1816

@@ -111,6 +109,11 @@
111109
// Ionic Input Sizes
112110
// --------------------------------------------------
113111

112+
:host(.input-size-medium) {
113+
--padding-start: #{globals.$ion-space-300};
114+
--padding-end: #{globals.$ion-space-300};
115+
}
116+
114117
:host(.input-size-large) {
115118
--padding-start: #{globals.$ion-space-400};
116119
--padding-end: #{globals.$ion-space-400};
@@ -137,21 +140,21 @@
137140
// --------------------------------------------------
138141

139142
:host(.input-shape-soft) {
140-
--border-radius: #{globals.$ion-border-radius-200};
143+
--border-radius: #{globals.$ion-soft-xl};
141144
}
142145

143146
:host(.input-shape-round) {
144-
--border-radius: #{globals.$ion-border-radius-400};
147+
--border-radius: #{globals.$ion-round-xl};
145148
}
146149

147150
:host(.input-shape-rectangular) {
148-
--border-radius: #{globals.$ion-border-radius-0};
151+
--border-radius: #{globals.$ion-rectangular-xl};
149152
}
150153

151154
// Ionic Input Password Toggle Sizes
152155
// --------------------------------------------------
153156

154-
:host ion-input-password-toggle {
157+
:host(.input-size-medium) ion-input-password-toggle {
155158
--size: #{globals.$ion-scale-1000};
156159
}
157160

0 commit comments

Comments
 (0)