Skip to content

Commit

Permalink
fix(HighlightedCard,MediaCard,MediaCard,Stepper): fix border color by…
Browse files Browse the repository at this point in the history
… replacing "divider" by "border" of the color palette and set the border size to 1 px
  • Loading branch information
jmbrocal committed Feb 1, 2021
1 parent 32445a2 commit 66e4aae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Mistica/Source/Components/Cards/DataCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private extension DataCard {
cardBaseView.contentView.descriptionLabel.numberOfLines = 0
cardBaseView.contentView.descriptionLabel.topSpacing = 8

addBorder()
addBorder(borderColor: .border)
}

func configure(with configuration: DataCardConfiguration) {
Expand Down
2 changes: 1 addition & 1 deletion Mistica/Source/Components/Cards/MediaCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private extension MediaCard {

richMediaContainerView.clipsToBounds = true

addBorder()
addBorder(borderColor: .border)
}

func configure(with configuration: MediaCardConfiguration) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ private extension HighlightedCard {
closeButton.clipsToBounds = true
closeButton.isHidden = true

addBorder()
addBorder(borderColor: .border)
makeRounded(cornerRadius: Constants.cornerRadius)
}

Expand Down
4 changes: 2 additions & 2 deletions Mistica/Source/Utils/Extensions/UIView+Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ extension UIView {
clipsToBounds = true
}

func addBorder(borderColor: UIColor = UIColor.divider) {
func addBorder(borderColor: UIColor) {
layer.borderColor = borderColor.cgColor
layer.borderWidth = 1.5
layer.borderWidth = 1
}

func removeBorder() {
Expand Down

0 comments on commit 66e4aae

Please sign in to comment.