-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: modulate Popover Components #3811
Conversation
start work on decoupling and modulating the popover components to their own respective components. This will allow the users to choose how they want the popovers to be displayed, whether they want a title, no title, or if they want to inject their own custom title. also start work on changing the popover docs to reflect this new behavior. also start work on updating the popover unit tests to reflect this new behavior
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.
looking good so far. i like
this issue was caused by the HOC function not carrying over the properties of the function, which were the modulated popover components.
add a shorthand syntax for declaring a popover with no title. also fix bsPrefix issues with PopoverTitle and PopoverContent
the actual children prop i don't know how i missed this 👀
So I'm a bit confused on what I should do for the react-bootstrap/src/PopoverTitle.js Line 13 in f6845d7
Should I just remove it and have the users inject their own tag via EDIT: this is what I ended up doing in 7efa7df |
this should be applied based on the user's preference, via className
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 is looking really nice!
Actually, the |
this will allow users to define a custom element type for their Popover components (such as setting PopoverTitle to use an 'h3' element)
Update Popover examples to utilize new `as` prop on `PopoverTitle` Co-Authored-By: Jimmy Jia <tesrin@gmail.com>
Is there anything keeping this PR from being merged? |
This should allow users more customization regarding the Popover component.
Fixes #2449.