Have a tooltip in which tooltip content div is added dynamically and role link is required as per requirement to get appended for aria label. Initial html of tooltip before it is expanded is
<div class="tooltip" tabindex="0" aria-expanded="false" role="link" aria-label="click here">
<span>
<i class="icon-tooltip"></i>
</span>
</div>
After the user click on the tooltip icon below will be html
<div class="tooltip" tabindex="0" aria-expanded="true" role="link" aria-label="click here">
<span>
<i class="icon-tooltip"></i>
</span>
<div class="tooltip content">
<p class="title">This is title</p>
<div class="description">
<p>this is line 1</p>
<p>this is line 2</p>
</div>
</div>
</div>
When verified in speech viewer the tooltip content is being read as expanded link This is title, expanded link This is line1, expanded link This is line2 instead of expected This is title, This is line1, This is line2. I tried to add role=none/presentation for the tooltip content to remove expanded link to prevent the parent role to the children elements but still it did not fix the issue. Is there a way to prevent the parent role and aria-expanded to inherit to the children elements?