Skip to content

Commit cc3c994

Browse files
authored
style(form-inputs): align error icon with top of multi-line messages (#627)
* style(pds-input): align error icon with top of multi-line error messages * style(pds-textarea): align error icon with top of multi-line error messages * style(pds-select): align error icon with top of multi-line error messages * style(pds-radio-group): align error icon with top of multi-line error messages * style(pds-radio): align error icon with top of multi-line error messages
1 parent 3280177 commit cc3c994

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

libs/core/src/components/pds-input/pds-input.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,13 @@
306306
}
307307

308308
.pds-input__error-message {
309-
align-items: center;
310309
color: var(--pds-input-error-color);
311310
display: flex;
312311
gap: var(--pine-dimension-2xs);
312+
313+
pds-icon {
314+
margin-block-start: var(--pine-dimension-025);
315+
}
313316
}
314317

315318
.visually-hidden {

libs/core/src/components/pds-radio-group/pds-radio-group.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@
3939
}
4040

4141
.pds-radio-group__message--error {
42-
align-items: center;
4342
display: flex;
4443
gap: var(--pine-dimension-2xs);
44+
45+
pds-icon {
46+
margin-block-start: var(--pine-dimension-050);
47+
}
4548
}
4649

libs/core/src/components/pds-radio/pds-radio.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,12 @@ label:has(input:disabled) {
194194
}
195195

196196
.pds-radio__message--error {
197-
align-items: center;
198197
display: flex;
199198
gap: var(--pine-dimension-2xs);
199+
200+
pds-icon {
201+
margin-block-start: var(--pine-dimension-025);
202+
}
200203
}
201204

202205
// Image-based radio styles - matches bordered layout

libs/core/src/components/pds-select/pds-select.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,13 @@ select {
148148
}
149149

150150
.pds-select__error-message {
151-
align-items: center;
152151
color: var(--pine-color-text-message-danger);
153152
display: flex;
154153
gap: var(--pine-dimension-2xs);
154+
155+
pds-icon {
156+
margin-block-start: var(--pine-dimension-025);
157+
}
155158
}
156159

157160
.pds-select__message {

libs/core/src/components/pds-textarea/pds-textarea.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,15 @@ label {
6666
}
6767

6868
.pds-textarea__error-message {
69-
align-items: center;
7069
color: var(--pine-color-text-message-danger);
7170
display: flex;
7271
font: var(--pine-typography-body-sm-medium);
7372
gap: var(--pine-dimension-2xs);
7473
margin-block-start: var(--pine-dimension-2xs);
74+
75+
pds-icon {
76+
margin-block-start: var(--pine-dimension-025);
77+
}
7578
}
7679

7780
.pds-textarea__field-wrapper {

0 commit comments

Comments
 (0)