CXTDT-412383 - Badge Corner Radius also updated spacing to tokens
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
c75e5670df
commit
b888100897
@ -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)
|
||||
|
||||
1
VDS/SupportingFiles/ReleaseNotes.txt
Normal file
1
VDS/SupportingFiles/ReleaseNotes.txt
Normal file
@ -0,0 +1 @@
|
||||
|
||||
Loading…
Reference in New Issue
Block a user