-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
chore(menu): move to stable #13678
chore(menu): move to stable #13678
Conversation
✅ Deploy Preview for carbon-components-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
I vote for separate component tags 🙋🏽♀️ |
I'm indifferent until I understand the ramifications. I'd love for the rest of @carbon-design-system/developers to weigh in. |
It would be nice to be able to distinguish issues as relating to |
I'm not sure if we should mark OverflowMenuV2 as stable under that name. The ideal for v12 would be that the existing OverflowMenu would be replaced with the internals of OverflowMenuV2 without a name change. Would it make more sense to instead:
This way existing usages of OverflowMenuV2 aren't impacted, but we're providing a path to a more seamless upgrade where folks won't have to change imports. Thoughts? A few unknowns:
|
@tay1orjones This sounds reasonable, I can work on that. How would you structure the storybook with this change? Should there be a folder inside of the |
@janhassel I'm proposing a new way to document feature flags and organize their stories over in #13382 (comment) I made a new file You could mirror the same for now and we could add the |
@tay1orjones I updated the OverflowMenuV2 implementation as you described above. I was also able to already use the new Could you look over it and let me know if there's anything I missed? |
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.
@tay1orjones Hmm, this seems to come from |
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.
Looks great, thanks!
I just made the following labels: We'll just reuse the existing component: overflow-menu for both versions with and without the new feature flag. |
Once #13840 is in, we'll also want to make the change here to remove We had to add it in to get that PR to pass due to the Menu's |
@tay1orjones Just pushed the updates 👍 |
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.
This looks great, @janhassel ! ✨Just a couple of things:
Menu story
- The caret icon in the first row of the menu needs to be vertically centered in the row with the text for all sizes. Currently, it looks to be a couple of pixels too high.
Menu button with dividers story (Safari bug)
- When the menu is open it overlaps the button.
Context menu question
- I don't see a story with the terminology "Context menu" specifically. Is
Menu
replacing this? For some reason, I was expecting to see it as its own component like Combo button, Menu button, and Overflow menu. I also can't find a way to right-click to get the menu to appear/open and was wondering if that interaction is still needed to display here or is it fine to only specify in our documentation?
|
@janhassel Okay sounds good. |
@tay1orjones we still see the violation when removing the rule I see the IBMa issue is still open so I don't think we can expect this false positive violation to not show up yet... |
@francinelucca @janhassel Ah I'm sorry, I thought the |
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.
I just re-added aria_child_tabbable
to the AC denylist. This looks good to merge and should pass now 👍
Closes #13514
Ref #13467 (comment)
Affects:
OverflowMenu/next
and can be enabled with a feature flag (enable-v12-overflowmenu
)src/index.js
and should not beunstable_
prefixedforwardRef
propTypes
definedPropTypes.shape
overPropTypes.object
if possibleonClick = () => {}
can cause re-renders since the function identity is not stable<ComponentName>.stories.js
Playground
story for controls