gd-bs 6.2.6 → 6.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bs.js +1 -1
- package/build/components/dropdown/index.js +1 -0
- package/build/components/popover/index.js +1 -0
- package/build/components/tooltip/index.js +5 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/dropdown/index.ts +1 -0
- package/src/components/popover/index.ts +1 -0
- package/src/components/tooltip/index.ts +6 -0
- package/src/styles/_core.scss +1 -1
package/package.json
CHANGED
|
@@ -221,6 +221,7 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
|
|
|
221
221
|
|
|
222
222
|
// Create the popover content element
|
|
223
223
|
this._elContent = document.createElement("div") as HTMLDivElement;
|
|
224
|
+
this._elContent.classList.add("popover");
|
|
224
225
|
this._elContent.classList.add("popover-content");
|
|
225
226
|
this._elContent.innerHTML = '<div class="popover-header"></div><div class="popover-body"></div>';
|
|
226
227
|
appendContent(this._elContent.querySelector(".popover-header"), this.props.title);
|
|
@@ -338,6 +338,12 @@ class _Tooltip extends Base<ITooltipProps> {
|
|
|
338
338
|
setContent(content: string | Element) {
|
|
339
339
|
// Set the tippy content
|
|
340
340
|
this.tippy.setContent(content);
|
|
341
|
+
|
|
342
|
+
// See if the button exists
|
|
343
|
+
if (this._btn && typeof (content) === "string") {
|
|
344
|
+
// Update the content
|
|
345
|
+
this._btn.el.setAttribute("aria-description", content);
|
|
346
|
+
}
|
|
341
347
|
}
|
|
342
348
|
|
|
343
349
|
// Shows the tooltip
|
package/src/styles/_core.scss
CHANGED
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
@import "~bootstrap/scss/modal";
|
|
36
36
|
/* We are using tippyjs styling
|
|
37
37
|
@import "~bootstrap/scss/tooltip";
|
|
38
|
-
@import "~bootstrap/scss/popover";
|
|
39
38
|
*/
|
|
39
|
+
@import "~bootstrap/scss/popover";
|
|
40
40
|
@import "~bootstrap/scss/carousel";
|
|
41
41
|
@import "~bootstrap/scss/spinners";
|
|
42
42
|
@import "~bootstrap/scss/offcanvas";
|