Skip to content

Commit 6b7225b

Browse files
author
Cathy Siller
committed
new(feat): tooltip on truncated links for file tiles
1 parent 04fa2be commit 6b7225b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/helix-ui/elements/HXFileTileElement.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class HXFileTileElement extends HXElement {
154154
* @type {String}
155155
*/
156156
get name () {
157-
return this.getAttribute('name' || '');
157+
return this.getAttribute('name') || '';
158158
}
159159
set name (newVal) {
160160
if (newVal === null) {
@@ -289,8 +289,10 @@ export class HXFileTileElement extends HXElement {
289289

290290
if (this.truncated) {
291291
this._renderName();
292+
this._elLink.setAttribute('title', this.name);
292293
} else {
293294
this._elName.innerText = this.name;
295+
this._elLink.removeAttribute('title');
294296
}
295297

296298
if (newVal === null) {

0 commit comments

Comments
 (0)