Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/01/2017 09:01:03 PM (8 years ago)
Author:
mercime
Message:

Accessibility: Replace <a href="#"> with Semantic Elements.

Using semantic markup like the button which is specifically meant for controlling a user interface instead of a fragment identifier separator # value with the href attribute, helps assistive technologies identify the real purpose of the UI element across all browsers and all devices.

Fixes #7612.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/activity/form.php

    r11686 r11719  
    2323
    2424<script type="text/html" id="tmpl-activity-post-form-buttons">
    25     <a href="#" class="button dashicons {{data.icon}}" data-button="{{data.id}}"><span class="bp-screen-reader-text">{{data.caption}}</span></a>
     25    <button type="button" class="button dashicons {{data.icon}}" data-button="{{data.id}}"><span class="bp-screen-reader-text">{{data.caption}}</span></button>
    2626</script>
    2727
     
    3838
    3939    <# if ( data.selected ) { #>
    40         <a href="#" class="bp-remove-item dashicons dashicons-no" data-item_id="{{data.id}}">
     40        <button type="button" class="bp-remove-item dashicons dashicons-no" data-item_id="{{data.id}}">
    4141            <span class="bp-screen-reader-text"><?php esc_html_e( 'Remove item', 'buddypress' ); ?></span>
    42         </a>
     42        </button>
    4343    <# } #>
    4444</script>
Note: See TracChangeset for help on using the changeset viewer.