Skip to content

Commit

Permalink
Reuse existing screen-reader-text CSS class. (#55309)
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia authored and mikachan committed Nov 1, 2023
1 parent 563c5a8 commit 4eadbff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/query/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function render_block_core_query( $attributes, $content, $block ) {
$content = substr_replace(
$content,
'<div
class="wp-block-query__enhanced-pagination-navigation-announce"
class="wp-block-query__enhanced-pagination-navigation-announce screen-reader-text"
aria-live="polite"
data-wp-text="context.core.query.message"
></div>
Expand Down
11 changes: 0 additions & 11 deletions packages/block-library/src/query/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,3 @@
opacity: 0;
}
}

.wp-block-query__enhanced-pagination-navigation-announce {
position: absolute;
clip: rect(0, 0, 0, 0);
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
border: 0;
}

0 comments on commit 4eadbff

Please sign in to comment.