Skip to content

Commit

Permalink
fix(picker): update picker display and icon flex properties to resolv…
Browse files Browse the repository at this point in the history
…e layout bugs (#3220)
  • Loading branch information
cdransf authored Oct 11, 2024
1 parent 812e824 commit b28e1d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/chatty-sheep-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spectrum-css/picker": minor
---

Applies flex-shrink to validation icons to prevent icon from resizing when label is long enough to be truncated.
1 change: 1 addition & 0 deletions components/picker/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@
}

.spectrum-Picker-validationIcon {
flex-shrink: 0;
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)));
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)));
}
Expand Down

0 comments on commit b28e1d4

Please sign in to comment.