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 Oct 17, 2023
1 parent 72ccb24 commit 46603dc
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;
}

1 comment on commit 46603dc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 46603dc.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6546044189
📝 Reported issues:

Please sign in to comment.