Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2017 12:15:51 AM (7 years ago)
Author:
mercime
Message:

Replace title attributes with BuddyPress Tooltips.

The values of title attributes provide additional information which show up on
mouse :hover for some links. However, such text values are not even read by some
ATs and the native title tooltips do not show up for keyboard users on :focus.
This means that some users are deprived of helpful information which can
provide some guidance to navigate through the BP screens.

The new BP tooltip pattern shows additional information on :hover and :focus and
prevents redundant information for users of screen readers or other ATs by
adding aria-label="some-info" only as needed.

See #7188.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-filters.php

    r11280 r11564  
    208208
    209209    $activity_allowedtags = $allowedtags;
    210     $activity_allowedtags['a']['class'] = array();
    211     $activity_allowedtags['a']['id']    = array();
    212     $activity_allowedtags['a']['rel']   = array();
    213     $activity_allowedtags['a']['title'] = array();
     210    $activity_allowedtags['a']['aria-label']      = array();
     211    $activity_allowedtags['a']['class']           = array();
     212    $activity_allowedtags['a']['data-bp-tooltip'] = array();
     213    $activity_allowedtags['a']['id']              = array();
     214    $activity_allowedtags['a']['rel']             = array();
     215    $activity_allowedtags['a']['title']           = array();
    214216
    215217    $activity_allowedtags['b']    = array();
     
    224226    $activity_allowedtags['img']['class']  = array();
    225227    $activity_allowedtags['img']['id']     = array();
    226     $activity_allowedtags['img']['title']  = array();
    227228
    228229    $activity_allowedtags['span']                   = array();
Note: See TracChangeset for help on using the changeset viewer.