Digital ACT191 defect CXTDT-626309 - Update to default header h2 padding
This commit is contained in:
parent
f3e97ecfd4
commit
3a06f7b43e
@ -47,12 +47,6 @@ public class HeadersH2ButtonsModel: HeaderModel, MoleculeModelProtocol, ParentMo
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
public override func setDefaults() {
|
public override func setDefaults() {
|
||||||
if topPadding == nil {
|
|
||||||
topPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if bottomPadding == nil {
|
|
||||||
bottomPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if titleLockup.title.fontStyle == nil {
|
if titleLockup.title.fontStyle == nil {
|
||||||
titleLockup.title.fontStyle = Styler.Font.RegularTitleXLarge
|
titleLockup.title.fontStyle = Styler.Font.RegularTitleXLarge
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,12 +42,6 @@ public class HeadersH2CaretLinkModel: HeaderModel, MoleculeModelProtocol, Parent
|
|||||||
// MARK: - Methods
|
// MARK: - Methods
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
public override func setDefaults() {
|
public override func setDefaults() {
|
||||||
if topPadding == nil {
|
|
||||||
topPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if bottomPadding == nil {
|
|
||||||
bottomPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if titleLockup.title.fontStyle == nil {
|
if titleLockup.title.fontStyle == nil {
|
||||||
titleLockup.title.fontStyle = Styler.Font.RegularTitleXLarge
|
titleLockup.title.fontStyle = Styler.Font.RegularTitleXLarge
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,12 +46,6 @@ public class HeadersH2LinkModel: HeaderModel, ParentMoleculeModelProtocol {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
public override func setDefaults() {
|
public override func setDefaults() {
|
||||||
if topPadding == nil {
|
|
||||||
topPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if bottomPadding == nil {
|
|
||||||
bottomPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if titleLockup.title.fontStyle == nil {
|
if titleLockup.title.fontStyle == nil {
|
||||||
titleLockup.title.fontStyle = Styler.Font.RegularTitleXLarge
|
titleLockup.title.fontStyle = Styler.Font.RegularTitleXLarge
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,12 +36,6 @@ public class HeadersH2NoButtonsBodyTextModel: HeaderModel, MoleculeModelProtocol
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override func setDefaults() {
|
public override func setDefaults() {
|
||||||
if topPadding == nil {
|
|
||||||
topPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if bottomPadding == nil {
|
|
||||||
bottomPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if titleLockup.title.fontStyle == nil {
|
if titleLockup.title.fontStyle == nil {
|
||||||
titleLockup.title.fontStyle = Styler.Font.RegularTitleXLarge
|
titleLockup.title.fontStyle = Styler.Font.RegularTitleXLarge
|
||||||
}
|
}
|
||||||
|
|||||||
@ -57,12 +57,6 @@ public class HeadersH2PricingTwoRowsModel: HeaderModel, MoleculeModelProtocol, P
|
|||||||
// MARK: - Methods
|
// MARK: - Methods
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
public override func setDefaults() {
|
public override func setDefaults() {
|
||||||
if topPadding == nil {
|
|
||||||
topPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if bottomPadding == nil {
|
|
||||||
bottomPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if headline.accessibilityTraits == nil {
|
if headline.accessibilityTraits == nil {
|
||||||
headline.accessibilityTraits = .header
|
headline.accessibilityTraits = .header
|
||||||
}
|
}
|
||||||
|
|||||||
@ -47,12 +47,6 @@ public class HeadersH2TinyButtonModel: HeaderModel, MoleculeModelProtocol, Paren
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|
||||||
public override func setDefaults() {
|
public override func setDefaults() {
|
||||||
if topPadding == nil {
|
|
||||||
topPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if bottomPadding == nil {
|
|
||||||
bottomPadding = Padding.Component.VerticalMarginSpacing
|
|
||||||
}
|
|
||||||
if titleLockup.title.fontStyle == nil {
|
if titleLockup.title.fontStyle == nil {
|
||||||
titleLockup.title.fontStyle = Styler.Font.RegularTitleXLarge
|
titleLockup.title.fontStyle = Styler.Font.RegularTitleXLarge
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user