diff --git a/VDS/Typography/Typography.swift b/VDS/Typography/Typography.swift index d623d34f..04d91df5 100644 --- a/VDS/Typography/Typography.swift +++ b/VDS/Typography/Typography.swift @@ -83,8 +83,8 @@ extension TypographicalStyle { } } - public func style(for fontSize: FontSize, isBold: Bool = false) -> TypographicalStyle? { - let styleName = "\(isBold ? "Bold" : "")\(self.rawValue)\(fontSize.rawValue)" + public func style(for fontSize: FontSize?, isBold: Bool = false) -> TypographicalStyle? { + let styleName = "\(isBold ? "Bold" : "")\(self.rawValue)\(fontSize?.rawValue ?? "")" guard let style = TypographicalStyle(rawValue: styleName) else { return nil }