()
| 45 | } |
| 46 | |
| 47 | private update(): void { |
| 48 | for (let i = 0; i < this._orderedList.length; i++) { |
| 49 | this._orderedList[i].setAttribute('aria-level', `${i}`); |
| 50 | this._orderedList[i].style.zIndex = |
| 51 | `calc(var(--dv-overlay-z-index, 999) + ${i * 2})`; |
| 52 | } |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | const arialLevelTracker = new AriaLevelTracker(); |