-
Notifications
You must be signed in to change notification settings - Fork 86
Rewrite in Typescript: PageHeader #336
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
Conversation
| legend?: string; | ||
| title?: string | JSX.Element; | ||
| breadCrumbs?: Array<JSX.Element>; | ||
| leftActions?: JSX.Element; |
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 leftActions also be type of JSX.Element | Array<JSX.Element>?
I found rightActions accepts both single object or an array of objects in story.
| tag?: keyof ReactHTML; | ||
| category?: 'body' | 'heading' | 'title'; | ||
| type?: 'small' | 'regular' | 'medium' | 'large' | 'caps'; | ||
| type?: 'small' | 'regular' | 'medium' | 'large' | 'caps' | 'label'; |
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.
Since there isn't slds-text-heading_label or slds-text-heading--label class in the SLDS document,
https://www.lightningdesignsystem.com/utilities/text/#Heading-Size-Large
It is in the current source code of SLDS,
https://github.com/salesforce-ux/design-system/blob/21b01368fc63db0cf53c077def1ebffd9bb4c64d/ui/utilities/text/_index.scss#L67
(Though it's deprecated)
And, original propTypes accept it: https://github.com/mashmatrix/react-lightning-design-system/blob/master/src/scripts/Text.js#L28
So I added it.
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.
<Text type='label'> is used in PageHeader's story: https://github.com/mashmatrix/react-lightning-design-system/blob/master/stories/PageHeaderStories.js#L59
ec6bb03 to
dcadc5a
Compare
1a17fb5 to
55b3745
Compare
dcadc5a to
ed08100
Compare
58c8421 to
1a17fb5
Compare
1a17fb5 to
cd70896
Compare
|
Closed because the last PR #342 had been merged. |
ref. #289
TODO: after #335 is merged, change base branch to 3.0