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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.2.6",
3
+ "version": "6.2.8",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -510,6 +510,7 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
510
510
  if (ddl) {
511
511
  // Set the inner html
512
512
  ddl.innerHTML = value;
513
+ ddl.setAttribute("aria-label", value);
513
514
  }
514
515
  }
515
516
 
@@ -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
@@ -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";