Skip to content

Commit

Permalink
Add missing CSS props on aria-live element
Browse files Browse the repository at this point in the history
Apparently, some screen readers don't read elements that don't have width and height.
  • Loading branch information
luisherranz committed Aug 23, 2023
1 parent 91466e3 commit 0d87af1
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -37,7 +37,7 @@ function render_block_core_query( $attributes, $content, $block ) {
$content = substr_replace(
$content,
'<div
style="position:absolute;clip:rect(0,0,0,0);"
style="position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;"
aria-live="polite"
data-wp-text="context.core.query.message"
></div>
Expand Down

0 comments on commit 0d87af1

Please sign in to comment.