Skip to content

Commit fe46ad8

Browse files
committed
fix(checkbox, input, textarea, toggle): fixed color and sizes for helper and error text
1 parent 3824518 commit fe46ad8

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

core/src/components/checkbox/checkbox.ionic.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,15 @@ input {
113113
// ----------------------------------------------------------------
114114

115115
.checkbox-bottom {
116-
@include globals.typography(globals.$ion-body-md-regular);
116+
@include globals.typography(globals.$ion-body-sm-medium);
117117
}
118118

119119
.checkbox-bottom .error-text {
120120
color: globals.$ion-text-danger;
121121
}
122122

123123
.checkbox-bottom .helper-text {
124-
@include globals.typography(globals.$ion-body-sm-medium);
125-
color: globals.$ion-primitives-neutral-800;
124+
color: globals.$ion-text-subtlest;
126125
}
127126

128127
// Label Placement - Start

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,15 @@
266266
@include globals.typography(globals.$ion-body-sm-medium);
267267
}
268268

269-
.input-bottom .helper-text,
270-
.input-bottom .counter {
271-
color: globals.$ion-primitives-neutral-800;
272-
}
273-
274269
.input-bottom .error-text {
275270
color: globals.$ion-text-danger;
276271
}
277272

273+
.input-bottom .helper-text,
274+
.input-bottom .counter {
275+
color: globals.$ion-text-subtlest;
276+
}
277+
278278
:host(.has-focus.ion-valid) .helper-text {
279279
color: var(--highlight-color-valid);
280280
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,15 @@ ion-icon {
141141
@include globals.typography(globals.$ion-body-sm-medium);
142142
}
143143

144+
.textarea-bottom .error-text {
145+
color: globals.$ion-text-danger;
146+
}
147+
144148
.textarea-bottom .helper-text,
145149
.textarea-bottom .counter {
146150
color: globals.$ion-text-subtlest;
147151
}
148152

149-
.textarea-bottom .error-text {
150-
color: globals.$ion-text-danger;
151-
}
152-
153153
:host(.has-focus.ion-valid) .helper-text {
154154
color: var(--highlight-color-valid);
155155
}

core/src/components/toggle/toggle.ionic.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,18 @@
5656
// ----------------------------------------------------------------
5757

5858
.toggle-bottom {
59-
@include globals.typography(globals.$ion-body-md-regular);
59+
@include globals.typography(globals.$ion-body-sm-medium);
6060
}
6161

6262
// Toggle Hint Text
6363
// ----------------------------------------------------------------
6464

6565
.toggle-bottom .error-text {
66-
color: globals.$ion-semantics-danger-900;
66+
color: globals.$ion-text-danger;
6767
}
6868

6969
.toggle-bottom .helper-text {
70-
@include globals.typography(globals.$ion-body-sm-medium);
71-
color: globals.$ion-primitives-neutral-800;
70+
color: globals.$ion-text-subtlest;
7271
}
7372

7473
// Toggle Native Wrapper: Focused

0 commit comments

Comments
 (0)