From b88810089725dc89840b9feb31eca9087b4740de Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 23 May 2023 12:20:36 -0500 Subject: [PATCH] CXTDT-412383 - Badge Corner Radius also updated spacing to tokens Signed-off-by: Matt Bruce --- VDS/Components/Badge/Badge.swift | 7 +++++-- VDS/SupportingFiles/ReleaseNotes.txt | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 VDS/SupportingFiles/ReleaseNotes.txt diff --git a/VDS/Components/Badge/Badge.swift b/VDS/Components/Badge/Badge.swift index c7fed36f..58562fd5 100644 --- a/VDS/Components/Badge/Badge.swift +++ b/VDS/Components/Badge/Badge.swift @@ -54,10 +54,13 @@ open class Badge: View { super.setup() accessibilityElements = [label] - layer.cornerRadius = VDSFormControls.borderradius + layer.cornerRadius = 2 addSubview(label) - label.pinToSuperView(.init(top: 2, left: 4, bottom: 2, right: 4)) + label.pinToSuperView(.init(top: 2, + left: VDSLayout.Spacing.space1X.value, + bottom: 2, + right: VDSLayout.Spacing.space1X.value)) maxWidthConstraint = label.widthAnchor.constraint(lessThanOrEqualToConstant: 100) minWidthConstraint = label.widthAnchor.constraint(greaterThanOrEqualToConstant: 23) diff --git a/VDS/SupportingFiles/ReleaseNotes.txt b/VDS/SupportingFiles/ReleaseNotes.txt new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/VDS/SupportingFiles/ReleaseNotes.txt @@ -0,0 +1 @@ +