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

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #420090 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    111 pts
    @mnotermans5114

    To get the best 508 tips and advice… search for posts from Jason Dalrymple ( https://community.trivantis.com/members/jasonadal/ ) He for sure works most with accessibility of all users around here and i do think around his posts and questions you will find the best tips on 508…

    Kind regards,
    Math

    #420154 Score: 0
    Profile photo of Therese Michael
    Therese Michael
    Member
    beginner
    intermediate
    curious george
    wise owl
    friend finder
    contributor
    @tmichael9734

    Thank Tea, Darrel and Matt (on the other post) for the time you gave to resolve my issues.  Darrel: no apologies. When I didn’t find your jQuery, I used the one that was attached in your early post.  Perhaps this was the cause of the blank page.  I’ll try the one you sent me yesterday and will come back to you.

    Tea, if I check “initially hidden” property for the button that I want to hide from the screen reader, will that hide the button from the devices? If it works, I can check “initially hidden” and “show” the button when the page loads.  What do you think?

    #420170 Score: 0
    Profile photo of Therese Michael
    Therese Michael
    Member
    beginner
    intermediate
    curious george
    wise owl
    friend finder
    contributor
    @tmichael9734

    Darrel,

    Thank you much, your formula worked perfectly and the button was hidden. However, it was hidden totally from the screen. I was trying to hide it only from screen readers.  So far, I can’t figure it out, but I’m glad I learned your formula, thank you.

    #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
    41 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 week, 3 days ago by Profile photo of Joe Wieloch Joe Wieloch.
    Attachments:
    #420175 Score: 0
    Profile photo of Darrel Somoza
    Darrel Somoza
    Member
    contributor
    friend finder
    beginner
    intermediate
    junior moderator
    advanced
    wise owl
    curious george
    profile
    194 pts
    @Klaatu

    Therese, are you sure you do not also have the initially hidden option selected. I know you are trying a lot of different things. The aria-hidden attribute should only hide the button from screen readers. Joe, above, is talking about token replacement, another great idea.

    #420180 Score: 0
    Profile photo of Therese Michael
    Therese Michael
    Member
    beginner
    intermediate
    curious george
    wise owl
    friend finder
    contributor
    @tmichael9734

    Joe, thanks a lot for the new method.  I removed the JQuery and used your JS on the button, however, it gave me a blank page.  Quick clarification, later in the year, will the readers completely skip the buttons that has “Empty ALT tag” set; or will they read the HTML name as it’s currently happening?

    Darrel: My bad, thanks a lot, you’re right! I’d “initially hidden” set.  Now that I unchecked it, yes, I can see the button.

    I’ll send the project to the 508 team and we’ll see if it works fine with them.  I’ll come back to you.

Viewing 6 posts - 16 through 21 (of 21 total)

You must be logged in to reply to this topic.