backport relative time title fix

This commit is contained in:
Cory LaViska
2024-09-24 13:02:31 -04:00
parent 4f29770bcb
commit e142b7a504
2 changed files with 5 additions and 1 deletions

View File

@@ -12,6 +12,10 @@ Components with the <wa-badge variant="warning" pill>Experimental</wa-badge> bad
During the alpha period, things might break! We take breaking changes very seriously, but sometimes they're necessary to make the final product that much better. We appreciate your patience!
:::
## Next
- Fixed a bug in `<wa-relative-time>` where the title attribute would show with redundant info
## 3.0.0-alpha.3
- Added [SSR support](/docs/experimental/ssr/) to all components

View File

@@ -99,7 +99,7 @@ export default class WaRelativeTime extends WebAwesomeElement {
this.updateTimeout = setTimeout(() => this.requestUpdate(), nextInterval);
}
return html` <time datetime=${this.isoTime} title=${this.relativeTime}>${this.relativeTime}</time> `;
return html` <time datetime=${this.isoTime}>${this.relativeTime}</time> `;
}
}