Shoelace #466 repro

https://github.com/shoelace-style/shoelace/issues/466

by geoffrich

HTML

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.43/dist/themes/base.css">
<script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.43/dist/shoelace.js"></script>

<sl-drawer label="Drawer" class="drawer-overview">
  <sl-tab-group>
    <sl-tab slot="nav" panel="general">General</sl-tab>
    <sl-tab-panel name="general">
      <sl-input placeholder="Type something"></sl-input>
      <br />
      <sl-select placeholder="Select one">
        <sl-menu-item value="option-1">Option 1</sl-menu-item>
        <sl-menu-item value="option-2">Option 2</sl-menu-item>
        <sl-menu-item value="option-3">Option 3</sl-menu-item>
      </sl-select>
    </sl-tab-panel>
  </sl-tab-group>
</sl-drawer>

<sl-button data-open>Open Drawer</sl-button>

<script>
	document.body.tabIndex = -1;
  const drawer = document.querySelector('.drawer-overview');
  const openButton = document.querySelector('[data-open]');

  openButton.addEventListener('click', () => drawer.show());
</script>

CSS

sl-tab-panel {
  border: 1px solid black;
}