-
Notifications
You must be signed in to change notification settings - Fork 946
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FeatureHighlight] FeatureHighlightViewController should expose FeatureHighlightView as a property. #3145
[FeatureHighlight] FeatureHighlightViewController should expose FeatureHighlightView as a property. #3145
Conversation
…utator. Tests added. Example updated.
…r to a mutator." This reverts commit 0b5433e.
…ponents-ios into develop
…ponents-ios into develop
…ponents-ios into develop
…rial-components-ios into Feature_Highlights_Expose_Typography_API
…rial-components-ios into Feature_Highlights_Expose_Typography_API
Blocked until we determine our theming strategy. |
@@ -250,51 +219,35 @@ - (void)setTitleColor:(UIColor *)titleColor { | |||
_titleLabel.textColor = titleColor; | |||
} | |||
|
|||
- (UIFont *)defaultTitleFont { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make into a class method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a readonly class property instead of a method? Do we have a preference either way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Property FTW.
[self updateBodyFont]; | ||
} | ||
|
||
- (UIFont *)defaultBodyFont { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make into a class method.
…ponents-ios into Feature_Highlights_Expose_Typography_API
Kokoro failure is unrelated. |
|
||
Alpha should be set to kMDCFeatureHighlightOuterHighlightAlpha. | ||
*/ | ||
@property(nonatomic, strong, null_resettable) UIColor *outerHighlightColor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are internal clients that are using this and the other properties. We should mark them deprecated instead of going strait to breaking changes.
This can result in slightly odd-looking code. Is this how we expect clients to use the new API? // Set the content on the VC
highlightController.titleText = @"Look, a New Feature!";
highlightController.bodyText = @"Look at this great new feature. It's great!";
// Set the colors on the view
highlightController.featureHighlightView.titleColor = UIColor.whiteColor;
highlightController.featureHighlightView.bodyColor = UIColor.whiteColor;
highlightController.featureHighlightView.outerHighlightColor = UIColor.darkGrayColor; |
Expose FeatureHighlightView property from FeatureHighlightViewController.
Removing Redundant properties from FeatureHighlightViewController
Internal Clean up to simplify dynamic font logic.
Updating the tests.
Close #3144