Explore the community Forums Lectora Inspire Tools Questions & Answers How to Change HTML name for Objects Reply To: How to Change HTML name for Objects

#420172 Score: 0
Profile photo of Joe Wieloch
Joe Wieloch
Moderator
beginner
intermediate
friend finder
contributor
LUC16 Attendee
verified member
wise owl
LUC17 Attendee
advanced
picture perfect
73 pts
@wheels

Therese,

That is a great idea! The button would not be read if it is initially hidden and then shown via an action. You may need a short delay on this show action, maybe add a 0.5 second delay.

In the future this will not be the case, so make sure you set the “Empty ALT Tag” property. Later this year the screen readers will read text, buttons, images, etc that are shown via actions (if they don’t have the “Empty ALT Tag” property set). Screen readers will read the shown text because we are changing our code to notify screen readers when this happens, it will be in the next release.

If there is some problem and you want to follow Darrel’s excellent aria-hidden advice you can do that without jQuery. Just attach an On Page Show action to the button that does a Run JavaScript action with this JavaScript:

%HTMLNAME%.div.setAttribute(‘aria-hidden’,’true’);

See screenshot.

– Joe

  • This reply was modified 1 year, 6 months ago by Profile photo of Joe Wieloch Joe Wieloch.
Attachments: