• Resolved jlongbrake

    (@jlongbrake)


    Could you add a null alt attribute to the ps-loader image in /inc/templates/password-form.php please? Without a null alt attribute it is getting flagged as an error during accessibility evaluation. Or could you tell me if there is a way I can make this change so that it won’t get overwritten when updating the plugin? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jlongbrake

    (@jlongbrake)

    Also you don’t seem to support including multiple protected areas on the same page without duplicating IDs. Here’s my custom template I made to fix all these issues. Please consider adding this in an updated to improve your form.

    password-form.php:

    <? $uniqueID = uniqid(); ?>
    <div class="passster-form[PASSSTER_HIDE]" id="[PASSSTER_ID]">
    <form class="password-form" method="post" autocomplete="off" target="_top">
    <span class="ps-form-headline">[PASSSTER_FORM_HEADLINE]</span>
    <p>[PASSSTER_FORM_INSTRUCTIONS]</p>
    <fieldset>
    <span class="ps-loader"><img alt="" src="[PS_AJAX_LOADER]"/></span>
    <label for="[PASSSTER_AUTH]<? echo $uniqueID; ?>" style="display:none;">Enter your password</label>
    <input placeholder="[PASSSTER_PLACEHOLDER]" type="password" tabindex="1" title="Enter your password" aria-label="Enter your password" name="[PASSSTER_AUTH]<? echo $uniqueID; ?>"
    id="[PASSSTER_AUTH]<? echo $uniqueID; ?>" class="passster-password" autocomplete="off"
    data-protection-type="[PASSSTER_TYPE]" data-list="[PASSSTER_LIST]" data-lists="[PASSSTER_LISTS]" data-area="[PASSSTER_AREA]"
    data-protection="[PASSSTER_PROTECTION]">
    [PASSSTER_SHOW_PASSWORD]
    <button name="submit" type="submit" class="passster-submit" data-psid="[PASSSTER_ID]" [PASSSTER_ACF]
    data-submit="...Checking Password" data-redirect="[PASSSTER_REDIRECT]">[PASSSTER_BUTTON_LABEL]
    </button>
    <div class="passster-error"></div>
    </fieldset>
    </form>
    </div>
    Plugin Support Andrei Cristea

    (@andreic86)

    Hello @jlongbrake,

    Thank you for the suggestions, I have forwarded these to our dev team and we will look into implementing these. A rough estimate would be the start of next week for this release.

    Have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Accessibility Error on ps-loader image’ is closed to new replies.