Skip to content

Commit e7152a1

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

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ parameters:
2222
# 3. Commit this change to the PR branch where the changes exist.
2323
current_golden_images_hash:
2424
type: string
25-
default: 94764405d1674838a93d6c6a39e793df39fc301e
25+
default: acdec8d8f41b5c15af16b93f14c5a87e03d66497
2626
wireit_cache_name:
2727
type: string
2828
default: wireit

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)