-
-
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
Add new props to the Hr element #28
Comments
Hello admins, I want to start working on this great repository! I want to start working on this issue if it seems relevant to you all. Thank you. @cstrat @rtivital @srezanova |
Hi @khushal87 sounds good! |
@rtivital Thanks, sure I will check the mentioned. For subheaders, you can refer https://material.io/components/dividers#usage. |
Yep, subHeader looks great, let's add it.
Here is a link to contributing guidelines – https://mantine.dev/pages/contribute/ with more in depth review |
Thanks a lot, @rtivital. I will soon raise a PR for the same. |
@khushal87 sorry, I forgot one thing, when you will create a PR, please request a merge to next-1.1.0 as this feature is planned to release in minor release |
Don't include me in that list, I've just helped fix some typos. Hoping I can contribute more though! |
@rtivital sure! 😄 |
Hey, @rtivital I was just running the storybook locally and facing this problem here. Can you help?
|
Let me check, I haven't tried on windows yet |
There's some path issue depending on the operating system according to me. |
Sorry, I've spent half an hour debugging this on windows 10, and nothing seems to work, I can propose only to skip the storybook part and develop straight in docs, it also has HMR and should work on windows |
Okay, i will go through this issue, if I find the solution I will propose a fix in the meantime @rtivital |
Okay, sounds good |
Hey @rtivital I made this working by this change in the
I changed stories to Reference: redwoodjs/redwood#954 (comment) |
Well, that fixes the problem but also removes all stories 😄 , the value for stories is required for storybook to work |
Exactly, so the next steps are adding a suitable path here to fetch all the stories, let me see if I can fix this too. |
@rtivital [path.resolve(__dirname, '../../src/**/*.story.@(ts|tsx)').replace(/\/g, '/')] this will work fine in every OS in my opinion can I raise a PR for it? 😄 |
Yep, just checked, it works on MacOS:
Please create the PR to master |
Thanks @rtivital |
@rtivital I have a quick doubt. Why is the default Hr variant 'dashed'? I believe the most suitable would be 'solid' |
I just always use dashed variant in my projects and never solid,but now that you add more features, lets change it to solid |
Okay. Thank you. |
@rtivital I believe that |
No let's leave size – it does not depend on the context. In vertical orientation size means width in horizontal – height. It's consistent with the rest of API |
Okay, got it. I am facing some issues with the vertical orientation styles, it is not coming up well. Let's see if different approaches work. Apart from that, everything is good to go. 💯 |
Resolved in 1.1.0 |
Currently, the
Hr
component has only three props asvariant, size, and color
. We can have some more useful props such as inset(left, right, middle), orientation(vertical, horizontal), subHeader, and width.Note: I am considering Hr in this package to be a standard
Divider
Progress:
The text was updated successfully, but these errors were encountered: