Skip to content

Commit

Permalink
fix: adding html title feature in columnitem (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreeSub authored Jun 24, 2021
1 parent c53e0ee commit b0e840a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coral-component-columnview/src/scripts/ColumnViewItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ class ColumnViewItem extends BaseLabellable(BaseComponent(HTMLElement)) {

// @a11y Item should be labelled by thumbnail, content, and accessibility state.
this.setAttribute('aria-labelledby', thumbnail.id + ' ' + content.id);

//adding html title, on hovering over textcontent title will be visible
this.setAttribute('title', this.content.textContent.trim());
}
}

Expand Down

0 comments on commit b0e840a

Please sign in to comment.