Skip to:
Content

BuddyPress.org

Ticket #7665: 7665-2.patch

File 7665-2.patch, 6.4 KB (added by DJPaul, 5 years ago)
  • src/bp-templates/bp-legacy/css/buddypress-rtl.css

    diff --git a/src/bp-templates/bp-legacy/css/buddypress-rtl.css b/src/bp-templates/bp-legacy/css/buddypress-rtl.css
    index 62181ed0b..60e0b1869 100644
    a b body.activity-permalink #buddypress div.activity-comments div.acomment-content { 
    786786        width: auto;
    787787}
    788788
     789#buddypress .standard-form label.bp-datefield {
     790        display: inline;
     791}
     792
    789793#buddypress .standard-form p label,
    790794#buddypress .standard-form #invite-list label {
    791795        font-weight: 400;
  • src/bp-templates/bp-legacy/css/buddypress.css

    diff --git a/src/bp-templates/bp-legacy/css/buddypress.css b/src/bp-templates/bp-legacy/css/buddypress.css
    index 3b35edb56..eacb8d9ee 100644
    a b body.activity-permalink #buddypress div.activity-comments div.acomment-content { 
    786786        width: auto;
    787787}
    788788
     789#buddypress .standard-form label.bp-datefield {
     790        display: inline;
     791}
     792
    789793#buddypress .standard-form p label,
    790794#buddypress .standard-form #invite-list label {
    791795        font-weight: 400;
  • src/bp-templates/bp-nouveau/common-styles/_bp_user_profile.scss

    diff --git a/src/bp-templates/bp-nouveau/common-styles/_bp_user_profile.scss b/src/bp-templates/bp-nouveau/common-styles/_bp_user_profile.scss
    index d1a92f131..b3a3d4d0e 100644
    a b  
    5757
    5858                                label {
    5959                                        font-weight: 400;
     60
     61                                        &.bp-datefield {
     62                                                display: inline;
     63                                        }
    6064                                }
    6165                        }
    6266                }
  • src/bp-templates/bp-nouveau/css/buddypress-rtl.css

    diff --git a/src/bp-templates/bp-nouveau/css/buddypress-rtl.css b/src/bp-templates/bp-nouveau/css/buddypress-rtl.css
    index 7154c517f..68526d70d 100644
    a b body.no-js .single-item-header .js-self-profile-button { 
    26002600        font-weight: 400;
    26012601}
    26022602
     2603.buddypress-wrap .profile.edit .editfield fieldset label.bp-datefield {
     2604        display: inline;
     2605}
     2606
    26032607.buddypress-wrap .profile.edit .editfield {
    26042608        display: flex;
    26052609        flex-direction: column;
  • src/bp-templates/bp-nouveau/css/buddypress.css

    diff --git a/src/bp-templates/bp-nouveau/css/buddypress.css b/src/bp-templates/bp-nouveau/css/buddypress.css
    index da992ae51..672a17974 100644
    a b body.no-js .single-item-header .js-self-profile-button { 
    26002600        font-weight: 400;
    26012601}
    26022602
     2603.buddypress-wrap .profile.edit .editfield fieldset label.bp-datefield {
     2604        display: inline;
     2605}
     2606
    26032607.buddypress-wrap .profile.edit .editfield {
    26042608        display: flex;
    26052609        flex-direction: column;
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

    diff --git a/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php b/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php
    index 56398f98f..9502ddc3c 100644
    a b class BP_XProfile_Field_Type_Datebox extends BP_XProfile_Field_Type { 
    105105                                 */
    106106                                do_action( bp_get_the_profile_field_errors_action() ); ?>
    107107
    108                                 <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
    109                                         /* translators: accessibility text */
    110                                         esc_html_e( 'Select day', 'buddypress' );
     108                                <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="bp-datefield"><?php
     109                                        esc_html_e( 'Day', 'buddypress' );
    111110                                ?></label>
    112111                                <select <?php echo $this->get_edit_field_html_elements( $day_r ); ?>>
    113112                                        <?php bp_the_profile_field_options( array(
    class BP_XProfile_Field_Type_Datebox extends BP_XProfile_Field_Type { 
    116115                                        ) ); ?>
    117116                                </select>
    118117
    119                                 <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
    120                                         /* translators: accessibility text */
    121                                         esc_html_e( 'Select month', 'buddypress' );
     118                                <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="bp-datefield"><?php
     119                                        esc_html_e( 'Month', 'buddypress' );
    122120                                ?></label>
    123121                                <select <?php echo $this->get_edit_field_html_elements( $month_r ); ?>>
    124122                                        <?php bp_the_profile_field_options( array(
    class BP_XProfile_Field_Type_Datebox extends BP_XProfile_Field_Type { 
    127125                                        ) ); ?>
    128126                                </select>
    129127
    130                                 <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="<?php echo is_admin() ? 'screen-reader-text' : 'bp-screen-reader-text' ;?>"><?php
    131                                         /* translators: accessibility text */
    132                                         esc_html_e( 'Select year', 'buddypress' );
     128                                <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="bp-datefield"><?php
     129                                        esc_html_e( 'Year', 'buddypress' );
    133130                                ?></label>
    134131                                <select <?php echo $this->get_edit_field_html_elements( $year_r ); ?>>
    135132                                        <?php bp_the_profile_field_options( array(
    class BP_XProfile_Field_Type_Datebox extends BP_XProfile_Field_Type { 
    300297                        'name' => bp_get_the_profile_field_input_name() . '_year'
    301298                ) ); ?>
    302299
    303                 <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="screen-reader-text"><?php
    304                         /* translators: accessibility text */
    305                         esc_html_e( 'Select day', 'buddypress' );
     300                <label for="<?php bp_the_profile_field_input_name(); ?>_day" class="bp-datefield"><?php
     301                        esc_html_e( 'Day', 'buddypress' );
    306302                ?></label>
    307303                <select <?php echo $this->get_edit_field_html_elements( $day_r ); ?>>
    308304                        <?php bp_the_profile_field_options( array( 'type' => 'day' ) ); ?>
    309305                </select>
    310306
    311                 <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="screen-reader-text"><?php
    312                         /* translators: accessibility text */
    313                         esc_html_e( 'Select month', 'buddypress' );
     307                <label for="<?php bp_the_profile_field_input_name(); ?>_month" class="bp-datefield"><?php
     308                        esc_html_e( 'Month', 'buddypress' );
    314309                ?></label>
    315310                <select <?php echo $this->get_edit_field_html_elements( $month_r ); ?>>
    316311                        <?php bp_the_profile_field_options( array( 'type' => 'month' ) ); ?>
    317312                </select>
    318313
    319                 <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="screen-reader-text"><?php
    320                         /* translators: accessibility text */
    321                         esc_html_e( 'Select year', 'buddypress' );
     314                <label for="<?php bp_the_profile_field_input_name(); ?>_year" class="bp-datefield"><?php
     315                        esc_html_e( 'Year', 'buddypress' );
    322316                ?></label>
    323317                <select <?php echo $this->get_edit_field_html_elements( $year_r ); ?>>
    324318                        <?php bp_the_profile_field_options( array( 'type' => 'year' ) ); ?>