focusTab(index) {
    const tabs = this.querySelectorAll('.web-tabs__tab');

    if (!tabs[index]) {
      throw new RangeError('There is no tab at the specified index.');
    }
    tabs[index].focus();
  }
// Helper method to allow other components to focus an arbitrary tab.
Helper method to allow other components to focus an arbitrary tab.
Helper method to allow other components to focus an arbitrary tab .
focusTab(index) {
    const tabs = this.querySelectorAll('.web-tabs__tab');
    if (!tabs[index]) {
      throw new RangeError('There is no tab at the specified index.');
    }
    tabs[index].focus();
  }
focusTab ( index ) { const tabs = this . querySelectorAll ( '.web-tabs__tab' ) ; if ( ! tabs [ index ] ) { throw new RangeError ( 'There is no tab at the specified index.' ) ; } tabs [ index ] . focus ( ) ; }
Helper method to allow other components to focus an arbitrary tab.
Helper method to allow other components to focus an arbitrary tab .