mirror of
git://develop.git.wordpress.org/
synced 2025-04-21 20:51:55 +02:00
Customize: Hide native control on background position field.
Hide the browser's native radio button on the custom background position selector in the Customizer and the legacy background screen. This fixes an issue causing both to display. Props mukesh27, ravipatel, sabernhardt, walbo, peterwilsoncc. Merges [51637] to the 5.8 branch. Fixes #53803. git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51640 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
592a108658
commit
b4d3553217
@ -418,7 +418,7 @@ class Custom_Background {
|
||||
<div class="button-group">
|
||||
<?php foreach ( $group as $value => $input ) : ?>
|
||||
<label>
|
||||
<input class="screen-reader-text" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>"<?php checked( $value, $background_position ); ?>>
|
||||
<input class="ui-helper-hidden-accessible" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>"<?php checked( $value, $background_position ); ?>>
|
||||
<span class="button display-options position"><span class="<?php echo esc_attr( $input['icon'] ); ?>" aria-hidden="true"></span></span>
|
||||
<span class="screen-reader-text"><?php echo $input['label']; ?></span>
|
||||
</label>
|
||||
|
@ -96,7 +96,7 @@ class WP_Customize_Background_Position_Control extends WP_Customize_Control {
|
||||
<div class="button-group">
|
||||
<?php foreach ( $group as $value => $input ) : ?>
|
||||
<label>
|
||||
<input class="screen-reader-text" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>">
|
||||
<input class="ui-helper-hidden-accessible" name="background-position" type="radio" value="<?php echo esc_attr( $value ); ?>">
|
||||
<span class="button display-options position"><span class="<?php echo esc_attr( $input['icon'] ); ?>" aria-hidden="true"></span></span>
|
||||
<span class="screen-reader-text"><?php echo $input['label']; ?></span>
|
||||
</label>
|
||||
|
Loading…
x
Reference in New Issue
Block a user