(tabElement: Element)
| 67 | }; |
| 68 | |
| 69 | export const unhighlightTab = (tabElement: Element): void => { |
| 70 | tabElement.classList.remove('selected'); |
| 71 | tabElement.removeAttribute('aria-current'); |
| 72 | }; |
| 73 | |
| 74 | const matchString = (matcher: RegExp | string, string: string): boolean => |
| 75 | typeof matcher === 'string' ? matcher === string : matcher.test(string); |
no test coverage detected