blob: 2d41eab42f665113b5a159b9b57cf98d937ad32c [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {CustomElement} from './custom_element.js';
export class AlertIndicatorElement extends CustomElement {
static get template() {
return `{__html_template__}`;
}
/** @override */
remove() {
this.toggleAttribute('fade-out', true);
this.addEventListener('animationend', () => super.remove(), {once: true});
}
}
customElements.define('tabstrip-alert-indicator', AlertIndicatorElement);