-
Notifications
You must be signed in to change notification settings - Fork 77
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
feat: new innerRefClassName prop as part of validationOverlayProps #1242
Conversation
Deploy preview for fundamental-react ready! Built with commit 06b7f19 |
src/utils/_Popper.js
Outdated
@@ -213,7 +213,7 @@ class Popper extends React.Component { | |||
x-out-of-boundaries={isReferenceHidden ? 'true' : undefined} | |||
// This is needed for fundamental-styles even though popper-2 uses data-placement as well | |||
x-placement={placement}> | |||
<div ref={innerRef}> | |||
<div className={classnames(`${cssBlock}__innerRef`, popperProps?.innerRefClassName)} ref={innerRef}> |
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.
Should innerRefClassName
be a separate prop? It doesn't seem to be a part of popper.js. Which is what we document popperProps
as, right?
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.
Yeah, you're right... I'm not sure what I was thinking. Maybe I had popperProper and popoverProps confused 🤷♀️ I'll change this. Thanks!
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
Description
This is useful for passing an additional class from nui-widgets to the wrapper div inside popper.