File size: 417 Bytes
83e6899
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import {
  LitElement,
  html,
  css,
} from 'https://cdn.jsdelivr.net/gh/lit/dist@3/core/lit-core.min.js';

class ScrollableComponent extends LitElement {
  renderRoot() {
    return this;
  }
  firstUpdated() {
    // this.focus();
  }
  render() {
    this.tabIndex = 0;
    this.style.overflowY = 'auto';
    this.style.outline = 'none';
  }
}

customElements.define('scrollable-component', ScrollableComponent);