From 27289f1ac8d29b23118cb283c4ba2a6d56acccda Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Wed, 13 Apr 2022 01:48:30 +0530 Subject: [PATCH] Font and padding changes to tiny button --- MVMCoreUI/Atomic/Atoms/Buttons/PillButton.swift | 2 +- MVMCoreUI/Styles/Styler.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Buttons/PillButton.swift b/MVMCoreUI/Atomic/Atoms/Buttons/PillButton.swift index e86d8a7b..14c57bfd 100644 --- a/MVMCoreUI/Atomic/Atoms/Buttons/PillButton.swift +++ b/MVMCoreUI/Atomic/Atoms/Buttons/PillButton.swift @@ -240,7 +240,7 @@ open class PillButton: Button, MVMCoreUIViewConstrainingProtocol { switch buttonSize { case .tiny: - titleLabel?.font = MFFonts.mfFont75Bd(11 * (intrinsicContentSize.height / Styler.Button.Size.tiny.getHeight())) + titleLabel?.font = Styler.Font.BoldMicro.getFont() case .small: titleLabel?.font = Styler.Font.BoldBodySmall.getFont() case .standard: diff --git a/MVMCoreUI/Styles/Styler.swift b/MVMCoreUI/Styles/Styler.swift index 00c946b6..addde766 100644 --- a/MVMCoreUI/Styles/Styler.swift +++ b/MVMCoreUI/Styles/Styler.swift @@ -191,7 +191,7 @@ open class Styler { case .small: return 32 case .tiny: - return 20 + return 26 } } }