Index: ios/chrome/browser/payments/payment_request_view_controller.mm |
diff --git a/ios/chrome/browser/payments/payment_request_view_controller.mm b/ios/chrome/browser/payments/payment_request_view_controller.mm |
index 714a42f03a8a56fb6dda41c00e9ec2cfc6fd58e2..853247a707eb7a087fe1dfbf770d66f277c9ec40 100644 |
--- a/ios/chrome/browser/payments/payment_request_view_controller.mm |
+++ b/ios/chrome/browser/payments/payment_request_view_controller.mm |
@@ -60,6 +60,8 @@ using ::payment_request_util::GetShippingOptionSelectorTitle; |
// as a link in the UI (see setLabelLinkURL: in CollectionViewFooterCell). |
const char kSettingsURL[] = "settings://card-and-address"; |
+const CGFloat kFooterCellHorizontalPadding = 16; |
+ |
} // namespace |
NSString* const kPaymentRequestCollectionViewID = |
@@ -522,6 +524,15 @@ typedef NS_ENUM(NSInteger, ItemType) { |
[[MDCPalette cr_bluePalette] tint700]; |
break; |
} |
+ case ItemTypeFooterText: { |
+ CollectionViewFooterCell* footerCell = |
+ base::mac::ObjCCastStrict<CollectionViewFooterCell>(cell); |
+ footerCell.textLabel.font = [MDCTypography body2Font]; |
+ footerCell.textLabel.textColor = [[MDCPalette greyPalette] tint600]; |
+ footerCell.textLabel.shadowColor = nil; // No shadow. |
+ footerCell.horizontalPadding = kFooterCellHorizontalPadding; |
+ break; |
+ } |
default: |
break; |
} |