Account created on 23 May 2018, about 6 years ago
#

Recent comments

Hi, effectively, for accessibility, I need to use tooltip_id like an ID, so if a term appear more than 1 time, there are duplicate IDs.

I use aria-describedby on the parent span and id on the tooltip span.

For exemple :

<span role="tooltip" aria-describedby="{{ tooltip_id }}" class="tx-tooltip" tabindex="0">
	{{ term_name }}
	<span id="{{ tooltip_id }}" class="tx-tooltip-text">
		{{ description }}
	</span>
</span>

I need all of this to have a clean accessibility code.

Is it possible to add an increment at the end of tooltip_id var after every use on a term ? Or something else ?

Thx for your help

Production build 0.69.0 2024