Adopt custom elements API in perf dashboard
[WebKit-https.git] / Websites / perf.webkit.org / public / v3 / components / warning-icon.js
1
2 class WarningIcon extends ButtonBase {
3     constructor()
4     {
5         super('warning-icon');
6     }
7
8     static sizeFactor() { return 0.7; }
9
10     static buttonContent()
11     {
12         return `<g stroke="#9f6000" fill="#9f6000" stroke-width="7">
13                 <polygon points="0,0, 100,0, 0,100" />
14             </g>`;
15     }
16 }
17
18 ComponentBase.defineElement('warning-icon', WarningIcon);