Skip to content

Conversation

@truclyle
Copy link
Contributor

Description

Call out more of FormInput's props explicitly for PropType validation using FormRadioItem as a model.

fixes #464

@truclyle truclyle changed the title docs: Call out FormInput's props explicitly docs: Call out FormInput's props explicitly (#464) Mar 18, 2019
@truclyle truclyle changed the title docs: Call out FormInput's props explicitly (#464) docs: Call out FormInput's props explicitly Mar 18, 2019
@jbadan jbadan requested a review from a team March 18, 2019 20:33
type: PropTypes.string,
value: PropTypes.string
};

Copy link
Contributor

Choose a reason for hiding this comment

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


FormInput.propDescriptions = {
disabled: 'Set to **true** to mark component as disabled and make it non-interactive.',
readOnly: 'Set to **true** to mark component as readonly.',
Copy link
Contributor

Choose a reason for hiding this comment

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

those are default props - their descriptions will be assigned automatically by https://github.com/SAP/fundamental-react/blob/master/src/_playground/documentation/Properties/defaults.js

You will need add descriptions here for name, state, and arguably type as the definition differs here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I want to make sure I understand you correctly.

The descriptions at https://github.com/SAP/fundamental-react/blob/master/src/_playground/documentation/Properties/defaults.js are automatically added.

What I need to provide are the descriptions for the props (name, value) that are not described in the above file as well as modify type's description to reflect the FormInput component.

Copy link
Contributor

@greg-a-smith greg-a-smith left a comment

Choose a reason for hiding this comment

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

@truclyle There should not be any changes in the package-lock.json file since there are no changes in the package.json file. It's likely a version mismatch that's causing it. We are using Node Version Manager and running Node 10.15.0, which comes bundled with NPM 6.4.1.

Copy link
Contributor

@greg-a-smith greg-a-smith left a comment

Choose a reason for hiding this comment

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

Looks good. 🚢 Thanks for the contribution!

@greg-a-smith greg-a-smith merged commit 3ac0124 into SAP:master Mar 20, 2019
@truclyle truclyle deleted the forminput-props branch March 20, 2019 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FormInput should have more props explicitly called out

3 participants