-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Core, Docs] add additional props to Hr component #37
Conversation
[Core] Fix storybook configuration
About inset – currently it feels very complicated, I think it's not necessary as margin can achieve this in single prop + inset is fixed, it is impossible to connect it to layout: <Hr style={{ marginLeft: 70 }} />
// same as
<Hr inset={true} insetType="left" /> |
So adding an insetLength can work? Or do you want the removal of the |
No, I think, insetLength will bring even more complexity – it'll be 3 props to set single margin, does not feel right. |
Okay, will remove it. |
subHeaderProps will be |
Wouldn't it be simply |
This will break component props table |
Oh, okay, looks good, I was having lots of issues with prop types generator, I think I accidentally fixed them sometime 😄 |
@rtivital I was going through the code and then I realized if we could export the StyleProps too from the styles.tsx of every components this will improve the reusability of all the components styles. Suppose I need |
I prefer to keep all props description in open place – component props interface – this way you don't need to jump between files to edit them |
What I mean is if we can export |
Yep, I've tried to do so, unfortunately there is no good solution to this. TextStylesProps does not include all Text component props and has required |
Oh, yes it doesn't have all, need to think some other way around. |
|
Yes, for the style, let me see if this works. |
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.
Great work @khushal87, please fix these issue
@rtivital Done. |
Thanks! Great work! |
This PR introduces
new props
to the Hr component. The props are:Have I added the tests/tested my changes?
Yes
Have I updated the docs for the changes?
Yes
Reference issue: #28