Skip to content

Commit acdec8d

Browse files
committed
fix(field-label): address edge case where required icon would not render on the same line
1 parent 2811b9e commit acdec8d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/field-label/src/field-label.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@
1414
@import url("./field-label-overrides.css");
1515

1616
label {
17-
display: inline-block;
17+
display: inline-flex;
18+
align-items: baseline;
19+
white-space: nowrap;
1820
}

packages/field-label/src/spectrum-field-label.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
margin-inline: var(--mod-field-label-text-to-asterisk, var(--spectrum-field-label-text-to-asterisk)) 0;
7979
vertical-align: initial;
8080
vertical-align: var(--mod-field-label-asterisk-vertical-align, baseline);
81+
flex-shrink: 0;
8182
}
8283

8384
:host([side-aligned="start"]),

0 commit comments

Comments
 (0)