1 | import { ES_APPLE } from "../const/ES_APPLE.js" |
2 | |
3 | export class MdOverflowButton extends HTMLButtonElement { |
4 | |
5 | connectedCallback() { |
6 | this.type = "button" |
7 | this.classList.add("md-standard-icon-button") |
8 | this.innerHTML = ES_APPLE |
9 | ? |
10 | `<span style="color: var(--md-sys-color-on-surface-variant)" |
11 | class="material-symbols-outlined"> |
12 | more_horiz |
13 | </span>` |
14 | : |
15 | `<span style="color: var(--md-sys-color-on-surface-variant)" |
16 | class="material-symbols-outlined"> |
17 | more_vert |
18 | </span>` |
19 | } |
20 | |
21 | } |
22 | |
23 | customElements |
24 | .define("md-overflow-button", MdOverflowButton, { extends: "button" }) |