Changeset 54243
- Timestamp:
- 09/20/2022 04:00:35 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/media.css
r53162 r54243 782 782 .edit-attachment-frame input, 783 783 .edit-attachment-frame textarea { 784 padding: 6px 8px;785 line-height: 1. 14285714;784 padding: 4px 8px; 785 line-height: 1.42857143; 786 786 } 787 787 … … 848 848 .wp_attachment_details .attachment-alt-text { 849 849 margin-bottom: 5px; 850 } 851 852 .wp_attachment_details #attachment_alt { 853 max-width: 500px; 854 height: 3.28571428em; 850 855 } 851 856 … … 1232 1237 1233 1238 @media screen and (max-width: 782px) { 1239 .edit-attachment-frame input, 1240 .edit-attachment-frame textarea { 1241 line-height: 1.5; 1242 } 1243 1234 1244 .wp_attachment_details label[for="content"] { 1235 1245 font-size: 14px; 1236 1246 line-height: 1.5; 1247 } 1248 1249 .wp_attachment_details textarea { 1250 line-height: 1.5; 1251 } 1252 1253 .wp_attachment_details #attachment_alt { 1254 height: 3.375em; 1237 1255 } 1238 1256 -
trunk/src/wp-admin/includes/media.php
r54094 r54243 3208 3208 <p class="attachment-alt-text"> 3209 3209 <label for="attachment_alt"><strong><?php _e( 'Alternative Text' ); ?></strong></label><br /> 3210 < input type="text" class="widefat" name="_wp_attachment_image_alt" id="attachment_alt" aria-describedby="alt-text-description" value="<?php echo esc_attr( $alt_text ); ?>" />3210 <textarea class="widefat" name="_wp_attachment_image_alt" id="attachment_alt" aria-describedby="alt-text-description"><?php echo esc_attr( $alt_text ); ?></textarea> 3211 3211 </p> 3212 3212 <p class="attachment-alt-text-description" id="alt-text-description"> -
trunk/src/wp-includes/css/media-views.css
r52263 r54243 101 101 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 102 102 font-size: 13px; 103 line-height: 1.38461538; 103 104 } 104 105 … … 530 531 } 531 532 533 .media-sidebar .alt-text textarea, 534 .attachment-details .alt-text textarea, 535 .compat-item .alt-text textarea, 536 .alt-text textarea { 537 height: 50px; 538 } 539 532 540 .compat-item { 533 541 float: left; … … 2799 2807 .media-frame select { 2800 2808 font-size: 16px; 2809 line-height: 1.5; 2801 2810 } 2802 2811 -
trunk/src/wp-includes/media-template.php
r54063 r54243 476 476 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 477 477 <# if ( 'image' === data.type ) { #> 478 <span class="setting has-description" data-setting="alt">478 <span class="setting alt-text has-description" data-setting="alt"> 479 479 <label for="attachment-details-two-column-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 480 < input type="text" id="attachment-details-two-column-alt-text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} />480 <textarea id="attachment-details-two-column-alt-text" aria-describedby="alt-text-description" {{ maybeReadOnly }}>{{ data.alt }}</textarea> 481 481 </span> 482 482 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> … … 707 707 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 708 708 <# if ( 'image' === data.type ) { #> 709 <span class="setting has-description" data-setting="alt">709 <span class="setting alt-text has-description" data-setting="alt"> 710 710 <label for="attachment-details-alt-text" class="name"><?php _e( 'Alt Text' ); ?></label> 711 < input type="text" id="attachment-details-alt-text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} />711 <textarea id="attachment-details-alt-text" aria-describedby="alt-text-description" {{ maybeReadOnly }}>{{ data.alt }}</textarea> 712 712 </span> 713 713 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> … … 1015 1015 <span class="setting alt-text has-description"> 1016 1016 <label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 1017 < input type="text" id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description" />1017 <textarea id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description"></textarea> 1018 1018 </span> 1019 1019 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> … … 1078 1078 <span class="setting alt-text has-description"> 1079 1079 <label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 1080 < input type="text" id="image-details-alt-text" data-setting="alt" value="{{ data.model.alt }}" aria-describedby="alt-text-description" />1080 <textarea id="image-details-alt-text" data-setting="alt" aria-describedby="alt-text-description">{{ data.model.alt }}</textarea> 1081 1081 </span> 1082 1082 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> -
trunk/tests/qunit/index.html
r53136 r54243 1172 1172 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 1173 1173 <# if ( 'image' === data.type ) { #> 1174 < label class="setting" data-setting="alt">1175 < span class="name">Alternative Text</span>1176 < input type="text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} />1177 </ label>1174 <span class="setting alt-text has-description" data-setting="alt"> 1175 <label for="attachment-details-two-column-alt-text" class="name">Alternative Text</label> 1176 <textarea id="attachment-details-two-column-alt-text" aria-describedby="alt-text-description" {{ maybeReadOnly }}>{{ data.alt }}</textarea> 1177 </span> 1178 1178 <p class="description" id="alt-text-description"><a href="https://www.w3.org/WAI/tutorials/images/decision-tree" target="_blank" rel="noopener">Describe the purpose of the image<span class="screen-reader-text"> (opens in a new tab)</span></a>. Leave empty if the image is purely decorative.</p> 1179 1179 <# } #> … … 1337 1337 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 1338 1338 <# if ( 'image' === data.type ) { #> 1339 < label class="setting" data-setting="alt">1340 < span class="name">Alt Text</span>1341 < input type="text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} />1342 </ label>1339 <span class="setting alt-text has-description" data-setting="alt"> 1340 <label for="attachment-details-alt-text" class="name">Alt Text</label> 1341 <textarea id="attachment-details-alt-text" aria-describedby="alt-text-description" {{ maybeReadOnly }}>{{ data.alt }}</textarea> 1342 </span> 1343 1343 <p class="description" id="alt-text-description"><a href="https://www.w3.org/WAI/tutorials/images/decision-tree" target="_blank" rel="noopener">Describe the purpose of the image<span class="screen-reader-text"> (opens in a new tab)</span></a>. Leave empty if the image is purely decorative.</p> 1344 1344 <# } #> … … 1629 1629 </div> 1630 1630 1631 < labelclass="setting alt-text has-description">1632 < span>Alternative Text</span>1633 < input type="text" data-setting="alt" aria-describedby="alt-text-description" />1634 </ label>1631 <span class="setting alt-text has-description"> 1632 <label for="embed-image-settings-alt-text" class="name">Alternative Text</label> 1633 <textarea id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description"></textarea> 1634 </span> 1635 1635 <p class="description" id="alt-text-description"><a href="https://www.w3.org/WAI/tutorials/images/decision-tree" target="_blank" rel="noopener">Describe the purpose of the image<span class="screen-reader-text"> (opens in a new tab)</span></a>. Leave empty if the image is purely decorative.</p> 1636 1636 … … 1684 1684 </div> 1685 1685 <div class="column-settings"> 1686 < labelclass="setting alt-text has-description">1687 < span>Alternative Text</span>1688 < input type="text" data-setting="alt" value="{{ data.model.alt }}" aria-describedby="alt-text-description" />1689 </ label>1686 <span class="setting alt-text has-description"> 1687 <label for="image-details-alt-text" class="name">Alternative Text</label> 1688 <textarea id="image-details-alt-text" data-setting="alt" aria-describedby="alt-text-description">{{ data.model.alt }}</textarea> 1689 </span> 1690 1690 <p class="description" id="alt-text-description"><a href="https://www.w3.org/WAI/tutorials/images/decision-tree" target="_blank" rel="noopener">Describe the purpose of the image<span class="screen-reader-text"> (opens in a new tab)</span></a>. Leave empty if the image is purely decorative.</p> 1691 1691
Note: See TracChangeset
for help on using the changeset viewer.