diff --git a/.changeset/late-roses-fly.md b/.changeset/late-roses-fly.md new file mode 100644 index 000000000..14905de69 --- /dev/null +++ b/.changeset/late-roses-fly.md @@ -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. diff --git a/.changeset/three-hairs-nail.md b/.changeset/three-hairs-nail.md new file mode 100644 index 000000000..2aac5bab1 --- /dev/null +++ b/.changeset/three-hairs-nail.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/components": patch +--- + +Update styles to scroll when Select content is long. diff --git a/apps/core/app/[locale]/(default)/cart/_components/shipping-info.tsx b/apps/core/app/[locale]/(default)/cart/_components/shipping-info.tsx index 7114644c9..965060624 100644 --- a/apps/core/app/[locale]/(default)/cart/_components/shipping-info.tsx +++ b/apps/core/app/[locale]/(default)/cart/_components/shipping-info.tsx @@ -157,7 +157,7 @@ export const ShippingInfo = ({ placeholder={t('countryPlaceholder')} value={formValues.country} > - + {shippingCountries.map(({ id, countryCode, name }) => { return ( @@ -179,7 +179,7 @@ export const ShippingInfo = ({ placeholder={t('statePlaceholder')} value={formValues.state} > - + {formValues.states.map(({ id, state }) => { return ( diff --git a/packages/components/src/components/select/select.tsx b/packages/components/src/components/select/select.tsx index 434895a50..d9f2b57db 100644 --- a/packages/components/src/components/select/select.tsx +++ b/packages/components/src/components/select/select.tsx @@ -59,19 +59,27 @@ type SelectContentType = typeof SelectPrimitive.Content; const SelectContent = forwardRef< ElementRef, ComponentPropsWithRef ->(({ children, className, ...props }, ref) => { +>(({ children, className, position = 'popper', ...props }, ref) => { return ( - + {children}