Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

fix: Change tertiaryLabel prop type to Object #571

Merged
merged 1 commit into from
Oct 31, 2018

Conversation

trevorgk
Copy link
Contributor

@trevorgk trevorgk commented Oct 31, 2018

The tertiaryLabel flow type of the TextField component was string, but this was not reflecting the use case.

It is useful for consumers to be able to include a link (or potentially any other content) in this section. In the case of the Advertiser sign-in portal, we are including a forgot password link.
image

I have updated the TextField component flow type and also discovered that the prop type was missing in other components and included them in this PR as well.

  • After discussion we are not including this change, the reason being:

there was a consensus at the time to NOT include child component prop checks in the parent component (like tertiaryLabel).

Copy link
Contributor

@dborysiewicz dborysiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments in Slack around if adding tertiaryLabel to the propType apart of this PR is best.

@trevorgk trevorgk merged commit 722f129 into master Oct 31, 2018
@trevorgk trevorgk deleted the tertiary-lbl-proptypes branch October 31, 2018 22:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants