diff --git a/CHANGELOG.md b/CHANGELOG.md index 15af118..bf446c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +- Added bold link text to text styles ## [1.10.1] - 2023-08-18Z - Added `isButton` trait to `CustomButton` diff --git a/SUICompanionApp/SUICompanionApp/Atoms/ExampleAtoms.swift b/SUICompanionApp/SUICompanionApp/Atoms/ExampleAtoms.swift index 1a074e8..4468ed7 100644 --- a/SUICompanionApp/SUICompanionApp/Atoms/ExampleAtoms.swift +++ b/SUICompanionApp/SUICompanionApp/Atoms/ExampleAtoms.swift @@ -38,6 +38,7 @@ extension Text: Examplable { Text("H5 Text").style(.H5) Text("Bold Text").style(.bold) Text("Bold Error Text").style(.errorBold) + Text("Bold Link Text").style(.linkBold) Text("Body Text").style(.body) Text("Info Text").style(.info) Text("Link Text").style(.link) diff --git a/Sources/SUIComponents/Atoms/Text+HMRC.swift b/Sources/SUIComponents/Atoms/Text+HMRC.swift index f2c7a42..d939a32 100644 --- a/Sources/SUIComponents/Atoms/Text+HMRC.swift +++ b/Sources/SUIComponents/Atoms/Text+HMRC.swift @@ -25,6 +25,7 @@ public enum TextStyle { case info case debug case link + case linkBold case error case errorBold @@ -33,7 +34,7 @@ public enum TextStyle { case .H3: return Font.H3.font() case .H4: return Font.H4.font() case .H5: return Font.H5.font() - case .bold, .errorBold: return Font.Bold.font() + case .bold, .linkBold, .errorBold: return Font.Bold.font() case .body, .info, .link, .error: return Font.Body.font() case .debug: return Font.Debug.font() } @@ -43,7 +44,7 @@ public enum TextStyle { case .H3: return Font.H3.uiFont() case .H4: return Font.H4.uiFont() case .H5: return Font.H5.uiFont() - case .bold, .errorBold: return Font.Bold.uiFont() + case .bold, .linkBold, .errorBold: return Font.Bold.uiFont() case .body, .info, .link, .error: return Font.Body.uiFont() case .debug: return Font.Debug.uiFont() } @@ -52,7 +53,7 @@ public enum TextStyle { switch self { case .info, .debug: return Color.Semantic.infoText - case .link: + case .link, .linkBold: return Color.Semantic.linkText case .error, .errorBold: return Color.Semantic.errorText