Skip to:
Content

BuddyPress.org

Changeset 11645


Ignore:
Timestamp:
07/13/2017 09:06:34 PM (9 years ago)
Author:
mercime
Message:

Add ARIA attr to associate single field with description.

Fixes #7348.

Location:
trunk/src/bp-xprofile/classes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-multiselectbox.php

    r11618 r11645  
    8484                do_action( bp_get_the_profile_field_errors_action() ); ?>
    8585
    86                 <select <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-3">
     86                <select <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
    8787                        <?php bp_the_profile_field_options( array(
    8888                                'user_id' => $user_id
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-number.php

    r11618 r11645  
    7676                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7777
    78                 <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
     78                <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
    7979
    8080                <?php if ( bp_get_the_profile_field_description() ) : ?>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-selectbox.php

    r11618 r11645  
    7676                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7777
    78                 <select <?php echo $this->get_edit_field_html_elements( $raw_properties ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
     78                <select <?php echo $this->get_edit_field_html_elements( $raw_properties ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
    7979                        <?php bp_the_profile_field_options( array( 'user_id' => $user_id ) ); ?>
    8080                </select>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php

    r11618 r11645  
    8282                        ?>
    8383
    84                         <textarea <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1"><?php bp_the_profile_field_edit_value(); ?></textarea>
     84                        <textarea <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3"><?php bp_the_profile_field_edit_value(); ?></textarea>
    8585
    8686                        <?php
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php

    r11618 r11645  
    7575                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7676
    77                 <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
     77                <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
    7878
    7979                <?php if ( bp_get_the_profile_field_description() ) : ?>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php

    r11618 r11645  
    7777                do_action( bp_get_the_profile_field_errors_action() ); ?>
    7878
    79                 <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1">
     79                <input <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
    8080
    8181                <?php if ( bp_get_the_profile_field_description() ) : ?>
Note: See TracChangeset for help on using the changeset viewer.