John Lee | 912fb9c0 | 2019-08-02 01:28:21 | [diff] [blame^] | 1 | // Copyright 2019 The Chromium Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style license that can be | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | import {CustomElement} from './custom_element.js'; | ||||
6 | |||||
7 | class Tab extends CustomElement { | ||||
8 | static get template() { | ||||
9 | return `{__html_template__}`; | ||||
10 | } | ||||
11 | |||||
12 | connectedCallback() { | ||||
13 | this.setAttribute('tabindex', 0); | ||||
14 | } | ||||
15 | } | ||||
16 | |||||
17 | customElements.define('tabstrip-tab', Tab); |