From b0e840a8fc6252a2345202766c02fc10a78b9345 Mon Sep 17 00:00:00 2001 From: Shree Lakshmi Ramasubramanian <67685445+ShreeSub@users.noreply.github.com> Date: Thu, 24 Jun 2021 11:30:07 +0530 Subject: [PATCH] fix: adding html title feature in columnitem (#178) --- coral-component-columnview/src/scripts/ColumnViewItem.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coral-component-columnview/src/scripts/ColumnViewItem.js b/coral-component-columnview/src/scripts/ColumnViewItem.js index 09ae92a0db..2ccd9eca59 100644 --- a/coral-component-columnview/src/scripts/ColumnViewItem.js +++ b/coral-component-columnview/src/scripts/ColumnViewItem.js @@ -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()); } }