@creative-web-solution/front-library 7.1.55 → 7.1.56

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,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 7.1.56
4
+
5
+ - [Popin]: Handle modal tabulation with iframe
6
+
3
7
  ## 7.1.55
4
8
 
5
9
  - [Popin]: Rework accessibility
@@ -30,6 +30,7 @@ export default class PopinAccessibility {
30
30
  }
31
31
 
32
32
  handleBackwardTab(e: Event): void {
33
+ this.#getFocusableElements();
33
34
  if (document.activeElement === this.#$firstElement) {
34
35
  e.preventDefault();
35
36
  this.focusLastElement();
@@ -37,6 +38,7 @@ export default class PopinAccessibility {
37
38
  }
38
39
 
39
40
  handleForwardTab(e: Event): void {
41
+ this.#getFocusableElements();
40
42
  if (document.activeElement === this.#$lastElement) {
41
43
  e.preventDefault();
42
44
  this.focusFirstElement();
@@ -46,7 +48,10 @@ export default class PopinAccessibility {
46
48
  refresh(): void {
47
49
  this.#addSentinels();
48
50
  this.#handleFocusBackInDocument();
51
+ this.#getFocusableElements();
52
+ }
49
53
 
54
+ #getFocusableElements(): void {
50
55
  this.#$elements = Array.from(
51
56
  this.#$popin.querySelectorAll<HTMLElement>(
52
57
  FOCUSABLE_ELEMENTS_SELECTOR,
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Front Library
2
2
 
3
- @version: 7.1.55
3
+ @version: 7.1.56
4
4
 
5
5
 
6
6
  ## Use
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@creative-web-solution/front-library",
3
3
  "title": "Frontend library",
4
4
  "description": "Frontend functions and modules",
5
- "version": "7.1.55",
5
+ "version": "7.1.56",
6
6
  "homepage": "https://github.com/creative-web-solution/front-library",
7
7
  "author": "Creative Web Solution <contact@cws-studio.com> (https://www.cws-studio.com)",
8
8
  "keywords": [],