CXTDT-412383 - Badge Corner Radius also updated spacing to tokens

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-05-23 12:20:36 -05:00
parent c75e5670df
commit b888100897
2 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -0,0 +1 @@