Skip to content
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

Ability to add custom class in tooltip/popover #32217

Merged
merged 5 commits into from
Nov 25, 2020

Conversation

rohit2sharma95
Copy link
Collaborator

@rohit2sharma95 rohit2sharma95 commented Nov 20, 2020

Porting of #31834 to main.

Fixes #19415

js/src/tooltip.js Outdated Show resolved Hide resolved
- Add unit tests to check either customClass is being added or not
- Update the show method to add mutiple class provided (space separated)
@rohit2sharma95 rohit2sharma95 marked this pull request as ready for review November 21, 2020 10:27
@rohit2sharma95 rohit2sharma95 requested a review from a team as a code owner November 21, 2020 10:27
Copy link
Member

@Johann-S Johann-S left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Thanks @rohit2sharma95

@XhmikosR XhmikosR merged commit c348ad4 into twbs:main Nov 25, 2020
@rohit2sharma95 rohit2sharma95 deleted the toolip-custom-class branch November 25, 2020 07:17
XhmikosR added a commit that referenced this pull request Nov 25, 2020
Remove unnecessary `_getCustomClass` method.

`customClass` will be in the configuration already, even if it is provided in the data attributes, and jQuery's [`addClass()`](https://api.jquery.com/addclass/) method will handle it, either `this.config.customClass` is a function or a class name (even if it is a blank string).

Co-authored-by: XhmikosR <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify the customization of popover
3 participants