mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Accessibility: Improve toggling the "Post locked" information visibility.
- effectively hides the "Post locked" information from assistive technologies - when a post is locked, reveals the "Post locked" information without CSS animation - the height CSS animation didn't work anyways after [24906] See #24553. Fixes #44946. Built from https://develop.svn.wordpress.org/trunk@45417 git-svn-id: http://core.svn.wordpress.org/trunk@45228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
48d9d94881
commit
fc17576fd2
@ -537,13 +537,14 @@ th.asc a:focus span.sorting-indicator:before {
|
||||
content: "\f142";
|
||||
}
|
||||
|
||||
tr.wp-locked .locked-indicator {
|
||||
.locked-indicator {
|
||||
display: none;
|
||||
margin-right: 6px;
|
||||
height: 20px;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
tr.wp-locked .locked-indicator-icon:before {
|
||||
.locked-indicator-icon:before {
|
||||
color: #82878c;
|
||||
content: "\f160";
|
||||
display: inline-block;
|
||||
@ -554,30 +555,25 @@ tr.wp-locked .locked-indicator-icon:before {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
tr.wp-locked .check-column label,
|
||||
tr.wp-locked .check-column input[type="checkbox"],
|
||||
tr.wp-locked .row-actions .inline,
|
||||
tr.wp-locked .row-actions .trash {
|
||||
.locked-info {
|
||||
display: none;
|
||||
}
|
||||
|
||||
tr .locked-info {
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
tr.wp-locked .locked-info {
|
||||
margin-top: 4px;
|
||||
height: auto;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.locked-text {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
tr.locked-info, tr.wp-locked .locked-info {
|
||||
transition: height 1s, opacity 0.5s;
|
||||
.wp-locked .locked-indicator,
|
||||
.wp-locked .locked-info {
|
||||
display: block;
|
||||
}
|
||||
|
||||
tr.wp-locked .check-column label,
|
||||
tr.wp-locked .check-column input[type="checkbox"],
|
||||
tr.wp-locked .row-actions .inline,
|
||||
tr.wp-locked .row-actions .trash {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fixed .column-comments .sorting-indicator {
|
||||
|
2
wp-admin/css/list-tables-rtl.min.css
vendored
2
wp-admin/css/list-tables-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -537,13 +537,14 @@ th.asc a:focus span.sorting-indicator:before {
|
||||
content: "\f142";
|
||||
}
|
||||
|
||||
tr.wp-locked .locked-indicator {
|
||||
.locked-indicator {
|
||||
display: none;
|
||||
margin-left: 6px;
|
||||
height: 20px;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
tr.wp-locked .locked-indicator-icon:before {
|
||||
.locked-indicator-icon:before {
|
||||
color: #82878c;
|
||||
content: "\f160";
|
||||
display: inline-block;
|
||||
@ -554,30 +555,25 @@ tr.wp-locked .locked-indicator-icon:before {
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
tr.wp-locked .check-column label,
|
||||
tr.wp-locked .check-column input[type="checkbox"],
|
||||
tr.wp-locked .row-actions .inline,
|
||||
tr.wp-locked .row-actions .trash {
|
||||
.locked-info {
|
||||
display: none;
|
||||
}
|
||||
|
||||
tr .locked-info {
|
||||
height: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
tr.wp-locked .locked-info {
|
||||
margin-top: 4px;
|
||||
height: auto;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.locked-text {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
tr.locked-info, tr.wp-locked .locked-info {
|
||||
transition: height 1s, opacity 0.5s;
|
||||
.wp-locked .locked-indicator,
|
||||
.wp-locked .locked-info {
|
||||
display: block;
|
||||
}
|
||||
|
||||
tr.wp-locked .check-column label,
|
||||
tr.wp-locked .check-column input[type="checkbox"],
|
||||
tr.wp-locked .row-actions .inline,
|
||||
tr.wp-locked .row-actions .trash {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.fixed .column-comments .sorting-indicator {
|
||||
|
2
wp-admin/css/list-tables.min.css
vendored
2
wp-admin/css/list-tables.min.css
vendored
File diff suppressed because one or more lines are too long
@ -529,8 +529,7 @@ $( document ).on( 'heartbeat-tick.wp-check-locked-posts', function( e, data ) {
|
||||
row.addClass('wp-locked');
|
||||
}
|
||||
} else if ( row.hasClass('wp-locked') ) {
|
||||
// Make room for the CSS animation
|
||||
row.removeClass('wp-locked').delay(1000).find('.locked-info span').empty();
|
||||
row.removeClass( 'wp-locked' ).find( '.locked-info span' ).empty();
|
||||
}
|
||||
});
|
||||
}).on( 'heartbeat-send.wp-check-locked-posts', function( e, data ) {
|
||||
|
2
wp-admin/js/inline-edit-post.min.js
vendored
2
wp-admin/js/inline-edit-post.min.js
vendored
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-45416';
|
||||
$wp_version = '5.3-alpha-45417';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user