Add part for styling

This commit is contained in:
2025-07-31 15:56:57 +02:00
parent ccae4fc7cd
commit 65cd13cdb9
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@tp/tp-timeout-strip",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"main": "tp-timeout-strip.js",
"scripts": {

View File

@@ -43,7 +43,7 @@ class TpTimeoutStrip extends LitElement {
render() {
return html`
<div class="strip ${this.active ? 'active' : ''}" style="animation-duration: ${this.timeout}ms" @animationend=${this._onAnimationEnd}></div>
<div part="strip" class="strip ${this.active ? 'active' : ''}" style="animation-duration: ${this.timeout}ms" @animationend=${this._onAnimationEnd}></div>
`;
}