+
-
-
-
+
+
diff --git a/packages/venia-ui/lib/components/CartPage/GiftCards/__tests__/giftCards.spec.js b/packages/venia-ui/lib/components/CartPage/GiftCards/__tests__/giftCards.spec.js
index 31b6a5582a..206f9814e4 100644
--- a/packages/venia-ui/lib/components/CartPage/GiftCards/__tests__/giftCards.spec.js
+++ b/packages/venia-ui/lib/components/CartPage/GiftCards/__tests__/giftCards.spec.js
@@ -4,6 +4,8 @@ import { useGiftCards } from '@magento/peregrine/lib/talons/CartPage/GiftCards/u
import GiftCards from '../giftCards';
+jest.mock('../../../../classify');
+
/*
* Mock talon.
*/
diff --git a/packages/venia-ui/lib/components/CartPage/GiftCards/giftCards.css b/packages/venia-ui/lib/components/CartPage/GiftCards/giftCards.css
index 330de4e1e0..253c6cbcf8 100644
--- a/packages/venia-ui/lib/components/CartPage/GiftCards/giftCards.css
+++ b/packages/venia-ui/lib/components/CartPage/GiftCards/giftCards.css
@@ -15,7 +15,7 @@
.card {
align-items: start;
display: grid;
- gap: 1rem;
+ gap: 1.5rem;
grid-template-columns: 1fr auto;
grid-template-areas:
'card_entry apply_button'
@@ -25,6 +25,19 @@
.card_input_container {
}
+.card_input_container_error input {
+ border-color: rgb(var(--venia-global-color-red-400));
+}
+
+.card_input_container_error input:focus {
+ border-color: rgb(var(--venia-global-color-gray-600));
+}
+
+.card_input_container_error p {
+ color: rgb(var(--venia-global-color-error));
+ font-weight: var(--venia-global-fontWeight-semibold);
+}
+
.cards_container {
align-items: baseline;
display: grid;
diff --git a/packages/venia-ui/lib/components/CartPage/GiftCards/giftCards.js b/packages/venia-ui/lib/components/CartPage/GiftCards/giftCards.js
index 69d9694a0a..d8e0d42901 100644
--- a/packages/venia-ui/lib/components/CartPage/GiftCards/giftCards.js
+++ b/packages/venia-ui/lib/components/CartPage/GiftCards/giftCards.js
@@ -116,6 +116,10 @@ const GiftCards = props => {
);
+ const containerClass = shouldDisplayCardError
+ ? classes.card_input_container_error
+ : classes.card_input_container;
+
const cardEntryContents = (
{
id={classes.card}
label="Gift Card Number"
>
-
+
{
return 'Something went wrong. Refresh and try again.';
}
+ const formClass = errorMessage ? classes.entryFormError : classes.entryForm;
+
if (data.cart.applied_coupons) {
const codes = data.cart.applied_coupons.map(({ code }) => {
return (
@@ -114,7 +116,7 @@ const CouponCode = props => {
return {codes}
;
} else {
return (
-
diff --git a/packages/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.css b/packages/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.css
index c00ab973fa..0f646c21c0 100644
--- a/packages/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.css
+++ b/packages/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.css
@@ -22,7 +22,7 @@
.billing_address_fields_root {
display: grid;
- gap: 0.5rem;
+ gap: 0.9375rem 1.5rem;
padding: 1rem 0rem;
}
diff --git a/packages/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js b/packages/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js
index 513ee31b79..3b8827b95d 100644
--- a/packages/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js
+++ b/packages/venia-ui/lib/components/CheckoutPage/PaymentInformation/creditCard.js
@@ -204,6 +204,7 @@ const CreditCard = props => {
Street Address 2
+
+ Optional
+
+ >
+
+
@@ -637,6 +663,11 @@ Array [
htmlFor="street1"
>
Street Address 2
+
+ Optional
+
-
-
-
+
+
+
Street Address 2
+
+ Optional
+
Street Address 2
+
+ Optional
+
Street Address 2
+
+ Optional
+
Street Address 2
+
+ Optional
+
Street Address 2
+
+ Optional
+
{
-
+
diff --git a/packages/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js b/packages/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js
index efbdbb6635..13ec2c3316 100644
--- a/packages/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js
+++ b/packages/venia-ui/lib/components/CheckoutPage/ShippingInformation/AddressForm/guestForm.js
@@ -91,7 +91,11 @@ const GuestForm = props => {
-
+
diff --git a/packages/venia-ui/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/shippingMethod.spec.js.snap b/packages/venia-ui/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/shippingMethod.spec.js.snap
index 7ee97627a9..ce7355066e 100644
--- a/packages/venia-ui/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/shippingMethod.spec.js.snap
+++ b/packages/venia-ui/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/shippingMethod.spec.js.snap
@@ -33,6 +33,27 @@ exports[`it disables inputs when the page is updating 1`] = `
type="radio"
value="flatrate|flatrate"
/>
+
+
+
@@ -102,6 +123,27 @@ exports[`it renders correctly 1`] = `
type="radio"
value="flatrate|flatrate"
/>
+
+
+
diff --git a/packages/venia-ui/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/updateModal.spec.js.snap b/packages/venia-ui/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/updateModal.spec.js.snap
index baa2b07cd3..14f881ccec 100644
--- a/packages/venia-ui/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/updateModal.spec.js.snap
+++ b/packages/venia-ui/lib/components/CheckoutPage/ShippingMethod/__tests__/__snapshots__/updateModal.spec.js.snap
@@ -100,6 +100,27 @@ exports[`it disables the submit button while loading 1`] = `
type="radio"
value="flatrate|flatrate"
/>
+
+
+
@@ -246,6 +267,27 @@ exports[`it renders correctly 1`] = `
type="radio"
value="flatrate|flatrate"
/>
+
+
+
diff --git a/packages/venia-ui/lib/components/Country/__tests__/__snapshots__/country.spec.js.snap b/packages/venia-ui/lib/components/Country/__tests__/__snapshots__/country.spec.js.snap
index 264ce57df9..2b4c924555 100644
--- a/packages/venia-ui/lib/components/Country/__tests__/__snapshots__/country.spec.js.snap
+++ b/packages/venia-ui/lib/components/Country/__tests__/__snapshots__/country.spec.js.snap
@@ -43,13 +43,13 @@ exports[`renders a disabled dropdown while loading 1`] = `