-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix: fix hover dropdown menu does not display single menu item #1150
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1150 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 88 88
Lines 1297 1307 +10
Branches 322 325 +3
=========================================
+ Hits 1297 1307 +10
Continue to review full report at Codecov.
|
ccb806f
to
dab42db
Compare
dab42db
to
a20ce90
Compare
triggers={['disabled']} | ||
isOpen={isOpen || mouseInPopover} | ||
title={headerText} | ||
popoverContent={<ul className="list-unstyled">{children}</ul>} | ||
popperRef={setPopperNode} | ||
arrowStyles={arrowPosition === 'none' ? { display: 'none' } : null} |
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.
maybe add a modifiers
props here as well, in case you want to customize it later
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.
you can either expose popoverModifiers
or considering pre-defined modifiers like set the width of the popper as the width of the reference
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.
sorry, I just found we have a props
named popoverProps
in the <TextEllipsis />
so maybe pass popoverProps
to the <Popover />
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.
LGTM
Fix Hover Dropdown Menu does not display when there is only 1 menu item.
Description
Does this PR introduce a breaking change?
Manual testing step?
Screenshots (if appropriate):