Skip to content

Commit

Permalink
docs(typography): Aligned children prop documentation for all typogra…
Browse files Browse the repository at this point in the history
…phy components
  • Loading branch information
lzcabrera committed Sep 6, 2017
1 parent e64a145 commit bcf10ed
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DisplayHeading.propTypes = {
*/
invert: PropTypes.bool,
/**
* The heading text.
* The text.
*/
children: PropTypes.node.isRequired
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const DisplayHeadingSub = ({ children, ...rest }) => (
)

DisplayHeadingSub.propTypes = {
/**
* The text.
*/
children: PropTypes.string.isRequired
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const DisplayHeadingSup = ({ children, ...rest }) => (

DisplayHeadingSup.propTypes = {
/**
* The text
* The text.
*/
children: PropTypes.string.isRequired
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Typography/Heading/Heading.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Heading.propTypes = {
*/
invert: PropTypes.bool,
/**
* The heading text.
* The text.
*/
children: PropTypes.node.isRequired
}
Expand Down
3 changes: 3 additions & 0 deletions src/components/Typography/Heading/HeadingSub/HeadingSub.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const HeadingSub = ({ children, ...rest }) => (
)

HeadingSub.propTypes = {
/**
* The text.
*/
children: PropTypes.string.isRequired
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const HeadingSup = ({ children, ...rest }) => (

HeadingSup.propTypes = {
/**
* The text
* The text.
*/
children: PropTypes.string.isRequired
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Typography/Small/Small.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Small = ({ children, ...rest }) => (

Small.propTypes = {
/**
* The Text
* The text.
*/
children: PropTypes.string.isRequired
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Typography/Strong/Strong.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Strong = ({ children, ...rest }) => (

Strong.propTypes = {
/**
* The text
* The text.
*/
children: PropTypes.string.isRequired
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Typography/Text/Text.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Text.propTypes = {
*/
invert: PropTypes.bool,
/**
* Text
* The text.
*/
children: PropTypes.node.isRequired
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Typography/Text/TextSup/TextSup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const TextSup = ({ children, ...rest }) => (

TextSup.propTypes = {
/**
* Text
* The text.
*/
children: PropTypes.node.isRequired
}
Expand Down

0 comments on commit bcf10ed

Please sign in to comment.