Skip to content

Commit

Permalink
fix(core): add minor changes to address form layout (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-alexsaiannyi committed Jul 15, 2024
1 parent e648a62 commit e0926ee
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-students-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bigcommerce/catalyst-core": patch
---

add minor changes to address form layout
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const AddAddress = ({
</Message>
)}
<Form action={onSubmit} ref={form}>
<div className="grid grid-cols-1 gap-y-6 lg:grid-cols-2 lg:gap-x-6 lg:gap-y-2">
<div className="grid grid-cols-1 gap-y-3 lg:grid-cols-2 lg:gap-x-6">
{addressFields.map((field) => {
switch (field.__typename) {
case 'TextFormField': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const EditAddress = ({
</Message>
)}
<Form action={onSubmit} ref={form}>
<div className="grid grid-cols-1 gap-y-6 lg:grid-cols-2 lg:gap-x-6 lg:gap-y-2">
<div className="grid grid-cols-1 gap-y-3 lg:grid-cols-2 lg:gap-x-6">
{addressFields.map((field) => {
const key = FieldNameToFieldId[field.entityId];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const AddressesContent = async ({
if (customerAction === 'add-new-address') {
return (
<div className="mx-auto mb-14 lg:w-2/3">
<h1 className="my-8 text-3xl font-black lg:text-4xl">{t('newAddress')}</h1>
<h1 className="mb-8 text-3xl font-black lg:text-4xl">{t('newAddress')}</h1>
<CustomerNewAddress />
</div>
);
Expand All @@ -47,7 +47,7 @@ export const AddressesContent = async ({

return (
<div className="mx-auto mb-14 lg:w-2/3">
<h1 className="my-8 text-3xl font-black lg:text-4xl">{t('editAddress')}</h1>
<h1 className="mb-8 text-3xl font-black lg:text-4xl">{t('editAddress')}</h1>
{activeAddress && Object.keys(activeAddress).length > 0 ? (
<CustomerEditAddress address={activeAddress} isAddressRemovable={addresses.length > 1} />
) : null}
Expand Down

0 comments on commit e0926ee

Please sign in to comment.