@limetech/lime-elements 37.14.0 → 37.14.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [37.14.1](https://github.com/Lundalogik/lime-elements/compare/v37.14.0...v37.14.1) (2024-04-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+
7
+ * **tooltip:** display the tooltip, when the element is focused using keyboard ([2c677a7](https://github.com/Lundalogik/lime-elements/commit/2c677a7db626b914dc5de1b131743975c1b9b870))
8
+
1
9
  ## [37.14.0](https://github.com/Lundalogik/lime-elements/compare/v37.13.3...v37.14.0) (2024-04-04)
2
10
 
3
11
 
@@ -2053,16 +2053,18 @@ const Tooltip = class {
2053
2053
  (_a = this.ownerElement) === null || _a === void 0 ? void 0 : _a.setAttribute('aria-describedby', this.tooltipId);
2054
2054
  }
2055
2055
  addListeners() {
2056
- var _a, _b, _c;
2056
+ var _a, _b, _c, _d;
2057
2057
  (_a = this.ownerElement) === null || _a === void 0 ? void 0 : _a.addEventListener('mouseover', this.showTooltip);
2058
2058
  (_b = this.ownerElement) === null || _b === void 0 ? void 0 : _b.addEventListener('mouseout', this.hideTooltip);
2059
- (_c = this.ownerElement) === null || _c === void 0 ? void 0 : _c.addEventListener('click', this.hideTooltip);
2059
+ (_c = this.ownerElement) === null || _c === void 0 ? void 0 : _c.addEventListener('focus', this.showTooltip);
2060
+ (_d = this.ownerElement) === null || _d === void 0 ? void 0 : _d.addEventListener('blur', this.hideTooltip);
2060
2061
  }
2061
2062
  removeListeners() {
2062
- var _a, _b, _c;
2063
+ var _a, _b, _c, _d;
2063
2064
  (_a = this.ownerElement) === null || _a === void 0 ? void 0 : _a.removeEventListener('mouseover', this.showTooltip);
2064
2065
  (_b = this.ownerElement) === null || _b === void 0 ? void 0 : _b.removeEventListener('mouseout', this.hideTooltip);
2065
- (_c = this.ownerElement) === null || _c === void 0 ? void 0 : _c.removeEventListener('click', this.hideTooltip);
2066
+ (_c = this.ownerElement) === null || _c === void 0 ? void 0 : _c.removeEventListener('focus', this.showTooltip);
2067
+ (_d = this.ownerElement) === null || _d === void 0 ? void 0 : _d.removeEventListener('blur', this.hideTooltip);
2066
2068
  }
2067
2069
  getOwnerElement() {
2068
2070
  let element = this.host;