Skip to content

Commit

Permalink
Merge pull request #175 from cashapp/entin/description-label-color
Browse files Browse the repository at this point in the history
Specify text color for marker labels to always be black
  • Loading branch information
NickEntin authored Dec 19, 2023
2 parents 9a72e64 + cdbb5db commit 143ca33
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ private extension AccessibilitySnapshotView {
? Strings.actionsAvailableText(for: marker.accessibilityLanguage)
: marker.description
descriptionLabel.font = Metrics.descriptionLabelFont
descriptionLabel.textColor = .black
descriptionLabel.numberOfLines = 0
addSubview(descriptionLabel)

Expand Down Expand Up @@ -652,11 +653,13 @@ private extension AccessibilitySnapshotView {
let iconLabel = UILabel()
iconLabel.text = ""
iconLabel.font = Metrics.font
iconLabel.textColor = .black
iconLabel.numberOfLines = 0

let actionDescriptionLabel = UILabel()
actionDescriptionLabel.text = $0
actionDescriptionLabel.font = Metrics.font
actionDescriptionLabel.textColor = .black
actionDescriptionLabel.numberOfLines = 0

return (iconLabel, actionDescriptionLabel)
Expand All @@ -666,6 +669,7 @@ private extension AccessibilitySnapshotView {
let label = UILabel()
label.text = actionsAvailableText
label.font = Metrics.font
label.textColor = .black
self.actionsAvailableLabel = label

} else {
Expand Down

0 comments on commit 143ca33

Please sign in to comment.