Skip to content

Commit b28e1d4

Browse files
authored
fix(picker): update picker display and icon flex properties to resolve layout bugs (#3220)
1 parent 812e824 commit b28e1d4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/chatty-sheep-draw.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spectrum-css/picker": minor
3+
---
4+
5+
Applies flex-shrink to validation icons to prevent icon from resizing when label is long enough to be truncated.

components/picker/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@
397397
}
398398

399399
.spectrum-Picker-validationIcon {
400+
flex-shrink: 0;
400401
margin-block-start: calc(var(--mod-picker-spacing-top-to-alert-icon, var(--spectrum-picker-spacing-top-to-alert-icon)) - var(--mod-picker-border-width, var(--spectrum-picker-border-width)));
401402
margin-block-end: calc(var(--mod-picker-spacing-top-to-alert-icon, var(--spectrum-picker-spacing-top-to-alert-icon)) - var(--mod-picker-border-width, var(--spectrum-picker-border-width)));
402403
}

0 commit comments

Comments
 (0)