-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Update Menu to v1 API #319
Conversation
Semantic-UI allows menu items with the class "header" to be <div>. Change behavior to allow "header" property that will then render a <div>. If MenuItem has "header" and "href" prop, then, render <a> tag.
Correct syntax for list checks
Current coverage is 88.33%@@ master #319 diff @@
==========================================
Files 62 62
Lines 821 823 +2
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 725 727 +2
Misses 96 96
Partials 0 0
|
Thanks for the PR. The The CONTRIBUTING.md guide details how to go about designing a component API. The Spec out the API section is of primary importance here. There are also a number of great example PRs to reference linked in #269. Would you be interested in updating the Menu component's API entirely? |
Not sure what your timeline is, but I can certainly contribute. I'll start with specs. Closing this PR for now. |
You'll see in the contributing guide that we'd love to have the spec right here in the PR. Feel free to re-open and use the PR description or comments for the spec! ;) |
Ok this is a huge component... I'll give it a whirl, but please forgive any glaring oversights. |
If it seems like a bit much to bite off at once, I can whip up the first spec and we can iterate from there. LMK. |
Menu API ProposalThis is really just to get the ball rolling...
|
TypesAll the Menu Types will follow this pattern, so we can just spec the one and extrapolate it to all Types: <Menu secondary>
...
</Menu> <div class="ui secondary menu">
...
</div> |
We should address #142 in this PR as well. |
@levithomason Sorry, but I won't be able to contribute as much time as I had hoped. |
OK, thanks for the note. I'll close this PR for now. Let me know if you decide to pick it back up later. |
Semantic-UI allows menu items with the class
header
to be<div>
. Change behavior to allowheader
property that will then render a<div>
. If MenuItem hasheader
andhref
prop, then, render<a>
tag.