// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /* eslint-disable @devtools/no-lit-render-outside-of-view, @devtools/enforce-custom-element-definitions-location */ import * as ComponentHelpers from '../../components/helpers/helpers.js'; import {html, render} from '../../lit/lit.js'; import panelIntroductionStepsStyles from './panelIntroductionSteps.css.js'; export class PanelIntroductionSteps extends HTMLElement { readonly #shadow = this.attachShadow({mode: 'open'}); connectedCallback(): void { void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#render); } #render(): void { if (!ComponentHelpers.ScheduledRender.isScheduledRender(this)) { throw new Error('FeedbackButton render was not scheduled'); } // clang-format off render(html`

slot: title

  1. slot: step-1
  2. slot: step-2
  3. slot: step-3
`, this.#shadow, {host: this}); // clang-format on } } customElements.define('devtools-panel-introduction-steps', PanelIntroductionSteps); declare global { interface HTMLElementTagNameMap { 'devtools-panel-introduction-steps': PanelIntroductionSteps; } }