Repository navigation
[menu] Add <Menu.LinkItem> part - #3400
Conversation
dd405c8 to
5b39504
Compare
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This comment was marked as resolved.
This comment was marked as resolved.
5b39504 to
ee02677
Compare
LukasTy
left a comment
There was a problem hiding this comment.
Nice work. 👍
Am I missing something? Or does this component really is missing the menuitem prop?
Screen reader behavior in the experiment example is not optimal. 🙈
6366c8f to
7da6bb0
Compare
de3ce01 to
730cdd5
Compare
730cdd5 to
4b7de83
Compare
<Menu.Link> part<Menu.LinkItem> part
4b7de83 to
ed8dc6b
Compare
| itemProps, | ||
| elementProps, | ||
| { | ||
| id, | ||
| role: 'menuitem', | ||
| tabIndex: highlighted ? 0 : -1, | ||
| onMouseMove(event) { | ||
| if (!nodeId) { | ||
| return; |
There was a problem hiding this comment.
Should there be a generic hook to reuse between both components?
There was a problem hiding this comment.
Indeed, it would be nice to co-locate at least part of the code between MenuItem and MenuLinkItem.
Did it prove too difficult? 🤔
There was a problem hiding this comment.
Updated in 4f30ff8
My first go at claude code 😬
| itemProps, | ||
| elementProps, | ||
| { | ||
| id, | ||
| role: 'menuitem', | ||
| tabIndex: highlighted ? 0 : -1, | ||
| onMouseMove(event) { | ||
| if (!nodeId) { | ||
| return; |
There was a problem hiding this comment.
Indeed, it would be nice to co-locate at least part of the code between MenuItem and MenuLinkItem.
Did it prove too difficult? 🤔
c5c0c82 to
8858742
Compare
LukasTy
left a comment
There was a problem hiding this comment.
Looks great. 👍 👏
Just a few final nitpicks. 🙈
3c3233e to
1c1565b
Compare
1c1565b to
906a540
Compare
Replacement for
<MenuItem render={<a href="#" />}It's
LinkItemsince we're already using this name elsewhere:Preview: https://deploy-preview-3400--base-ui.netlify.app/experiments/menu/menu-fully-featured