aboutsummaryrefslogtreecommitdiff
path: root/js/src/tooltip.js
AgeCommit message (Collapse)AuthorFilesLines
2020-11-30tooltip.js: reuse existent variableXhmikosR1-2/+2
2020-11-30Extra check for existence of any `aria-label`Patrick H. Lauke1-2/+2
before overwriting it...
2020-11-30Accessibility update for tooltip.jsMatty Williams1-0/+4
Update to the tooltip.js to add an aria-label attribute that contains the original title of the element, but only if the element doesn't have an existing aria-label attribute. This is to address cases where screen readers are not capturing the aria-describedby attribute that is added when the tooltip is triggered. This should also avoid a race condition between the screen reader and the appearance of the tooltip.
2020-11-29Remove setData from construtors (#32264)Rohit Sharma1-1/+0
2020-11-29Move `VERSION` to BaseComponent (#32254)Rohit Sharma1-5/+0
2020-11-29add dispose in base componentJohann-S1-3/+1
2020-11-29create a base componentJohann-S1-37/+35
2020-11-25Ability to add custom class in tooltip/popover (#32217)Rohit Sharma1-0/+7
Porting of #31834 to main. Co-authored-by: XhmikosR <[email protected]>
2020-11-21Be consistent with Popper's name. (#32224)XhmikosR1-1/+1
The npm package is named "popper.js" but the project is named "Popper", so use the latter consistently.
2020-11-14Switch to `Set#has()`XhmikosR1-2/+2
2020-11-14Switch to `String.includes()`XhmikosR1-1/+1
2020-11-14tooltip.js: deduplicate `_fixTitle()` (#32124)XhmikosR1-7/+4
2020-11-14Add `bs` in data attributesRohit Sharma1-3/+3
- Add `bs` in data APIs everywhere - Update unit tests
2020-11-11Prepare v5.0.0-alpha3 (#32122)v5.0.0-alpha3XhmikosR1-2/+2
2020-11-01Streamline jQuery comment. (#32016)XhmikosR1-1/+1
2020-11-01Fix TypeError when Bootstrap is included in `head` (#32024)Sascha1-11/+14
* extend jquery after domContentLoaded event is fired * add unittest for util onDOMContentLoaded * wait for trigger jquery event after domContentLoaded * remove domcontentready from eventHandler * move istanbul ignore statements to correct line Co-authored-by: XhmikosR <[email protected]>
2020-09-29Prepare v5.0.0-alpha2. (#31748)v5.0.0-alpha2XhmikosR1-2/+2
2020-09-24fix tooltip hide method when already hidden (#31115)Hiws1-0/+4
Co-authored-by: XhmikosR <[email protected]>
2020-07-12Add parentheses around multiple spread conditionsXhmikosR1-2/+2
2020-07-12tooltip.js: remove variable used once.XhmikosR1-2/+1
2020-07-12Unbreak lines.XhmikosR1-6/+5
2020-06-19Change whitelist to allowlist (#31066)Patrick H. Lauke1-6/+6
Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2020-06-18Fix tooltip when hovering a children element (delegateTarget) (#30928)Tanguy Krotoff1-9/+9
Co-authored-by: XhmikosR <[email protected]>
2020-06-17Unbreak short linesXhmikosR1-5/+1
2020-06-16Rename "master" to "main". (#31050)XhmikosR1-1/+1
2020-05-13Bump version to 5.0.0-alpha1 (#29925)XhmikosR1-2/+2
Also add v4.5.0 in versions and keep README.md pointing to v4.5.0 so that there are no broken stuff.
2020-04-28Drop closest from SelectorEngine (#30653)Martijn Cuppens1-2/+2
Co-authored-by: XhmikosR <[email protected]>
2020-04-17Replace event.delegateTarget with event.targetTanguy Krotoff1-9/+9
No need for fixEvent() anymore
2020-04-09Pass multiple classes to `classList.add` / `classList.remove` (#30537)XhmikosR1-2/+1
This is supported by our currently supported browsers.
2020-03-29Use `textContent` instead of `innerText`. (#30462)XhmikosR1-2/+2
It's supported by all of our supported browsers.
2020-03-25fix: remove make array util function (#30430)Johann-S1-3/+2
2020-03-18Switch to strings constants.XhmikosR1-48/+40
This allows the minifier to mangle the constants. It also allows the linter to find unused strings properly. While at it, remove a few unused properties. File Before After Diff -------------------------------------------------------- bootstrap.bundle.min.js 23.61 kB 22.61 kB -1.00 kB (-4.23 %) bootstrap.min.js 17.04 kB 16.08 kB -0.96 kB (-5.63 %)
2020-03-09Improvement: harmonize usage of constants (#30285)Sparks1-2/+3
2020-01-07Use regex.test() when we want to check for a Boolean. (#29969)XhmikosR1-3/+2
2019-10-03return to the original file structure to avoid breaking modularityJohann-S1-0/+827
2019-07-23rewrite tooltip unit testsJohann-S1-824/+0
2019-06-13tooltip dispose:removing only own event handler (#28896)david-lallement1-6/+8
2019-05-14fix popover arrow by selecting the first element childJohann-S1-3/+2
2019-05-08Rename `eventHandler` and `selectorEngine` files.XhmikosR1-2/+2
2019-03-11Remove more unused properties.XhmikosR1-1/+0
2019-03-11Comply to the new rules.XhmikosR1-111/+112
2019-02-26move util in a util folder with the sanitizerJohann-S1-17/+30
2019-02-20Use consistent arrow class (#28105)Peter Blazejewicz1-3/+3
2019-02-20Refactor util plugin and some testsJohann-S1-7/+3
2019-02-20chore(update): bump to 4.1.3Johann-S1-2/+1
2019-02-20fix(plugins): save instance in constructorJohann-S1-1/+1
2019-02-20fix(manipulator): increase coverage for manipulatorJohann-S1-5/+6
2019-02-20fix(data): do not use data object in our unit testsJohann-S1-0/+4
2019-02-20Return a new function with Util.noopJohann-S1-2/+2
2019-02-20tooltip without jqueryAlessandro Chitolina1-89/+113