Skip to content

Commit

Permalink
fix(core): update selects to use item-aligned select content
Browse files Browse the repository at this point in the history
  • Loading branch information
chanceaclark committed Apr 12, 2024
1 parent 768af42 commit f87c30e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-roses-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bigcommerce/catalyst-core": patch
---

Update cart select components to use the item-aligned select content in order to scroll with large Select content.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const ShippingInfo = ({
placeholder={t('countryPlaceholder')}
value={formValues.country}
>
<SelectContent>
<SelectContent position="item-aligned">
{shippingCountries.map(({ id, countryCode, name }) => {
return (
<SelectItem key={id} value={`${countryCode}-${id}`}>
Expand All @@ -179,7 +179,7 @@ export const ShippingInfo = ({
placeholder={t('statePlaceholder')}
value={formValues.state}
>
<SelectContent>
<SelectContent position="item-aligned">
{formValues.states.map(({ id, state }) => {
return (
<SelectItem key={id} value={state}>
Expand Down

0 comments on commit f87c30e

Please sign in to comment.