[wp-trac] [WordPress Trac] #35566: Remove title attributes: Tag cloud widget uses title to display topic count

WordPress Trac noreply at wordpress.org
Mon Mar 13 23:33:33 UTC 2017


#35566: Remove title attributes: Tag cloud widget uses title to display topic count
---------------------------------------+--------------------------------
 Reporter:  adamsoucie                 |       Owner:  afercia
     Type:  defect (bug)               |      Status:  assigned
 Priority:  normal                     |   Milestone:  4.8
Component:  Widgets                    |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch has-screenshots  |     Focuses:  ui, accessibility
---------------------------------------+--------------------------------

Comment (by afercia):

 Worth noting while Twenty Sixteen filters the Tag Cloud widget arguments
 to make the tags font size be the same:
 {{{
 function twentysixteen_widget_tag_cloud_args( $args ) {
         $args['largest'] = 1;
         $args['smallest'] = 1;
         $args['unit'] = 'em';
         return $args;
 }
 add_filter( 'widget_tag_cloud_args', 'twentysixteen_widget_tag_cloud_args'
 );
 }}}

 and based on the fact the `smallest` and `largest` arguments are the same,
 the `aria-label` attribute is not printed out, Twenty Seventeen instead
 just overrides the inline styles with an `!important` set on the `font-
 size` declaration thus making impossible to implement the same logic.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35566#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list