Skip to content

Commit

Permalink
[FeatureHighlight] title not attributed. (#4175)
Browse files Browse the repository at this point in the history
* seems like we were not setting attributed text for title.

* We should set attributed text for title as well.
  • Loading branch information
mohammadcazig authored and ianegordon committed May 17, 2018
1 parent 82d682a commit 5ed1f44
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -112,8 +112,8 @@ - (void)loadView {
}

- (void)viewWillLayoutSubviews {
_featureHighlightView.titleLabel.text = self.titleText;
[self attributedStringForString:self.titleText lineSpacing:kMDCFeatureHighlightLineSpacing];
_featureHighlightView.titleLabel.attributedText =
[self attributedStringForString:self.titleText lineSpacing:kMDCFeatureHighlightLineSpacing];
_featureHighlightView.bodyLabel.attributedText =
[self attributedStringForString:self.bodyText lineSpacing:kMDCFeatureHighlightLineSpacing];
}
Expand Down

0 comments on commit 5ed1f44

Please sign in to comment.