Change PriceCardView font to UIFontTextStyleFootnote
We have had a UX request to change the PriceCardView font
size to match that of the URL title i.e.
UIFontTextStyleFootnote.
Bug: 1275168
Change-Id: I9038cf8e95624b09711f98669e4c751b4d47528e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3308534
Reviewed-by: Xing Liu <xingliu@chromium.org>
Commit-Queue: David Maunder <davidjm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#946564}
diff --git a/ios/chrome/browser/ui/commerce/price_card/price_card_view.mm b/ios/chrome/browser/ui/commerce/price_card/price_card_view.mm
index 758f9f2..647ddf8 100644
--- a/ios/chrome/browser/ui/commerce/price_card/price_card_view.mm
+++ b/ios/chrome/browser/ui/commerce/price_card/price_card_view.mm
@@ -48,7 +48,7 @@
currentPriceLabel.translatesAutoresizingMaskIntoConstraints = NO;
currentPriceLabel.font =
- [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
+ [UIFont preferredFontForTextStyle:UIFontTextStyleFootnote];
currentPriceLabel.textColor = [UIColor colorNamed:kGreen700Color];
currentPriceLabel.backgroundColor = [UIColor colorNamed:kGreen50Color];
currentPriceLabel.adjustsFontForContentSizeCategory = YES;
@@ -57,7 +57,7 @@
UILabel* previousPriceLabel = [[UILabel alloc] init];
previousPriceLabel.translatesAutoresizingMaskIntoConstraints = NO;
previousPriceLabel.font =
- [UIFont preferredFontForTextStyle:UIFontTextStyleBody];
+ [UIFont preferredFontForTextStyle:UIFontTextStyleFootnote];
previousPriceLabel.textColor =
[UIColor colorNamed:kPriceDropPreviousPriceTextColor];
previousPriceLabel.adjustsFontForContentSizeCategory = YES;