| @@ -1442,9 +1442,8 @@ | ||
| 1442 | 1442 | view.addRenderAttribute( |
| 1443 | 1443 | 'background-video-container', |
| 1444 | 1444 | { |
| 1445 | 1445 | 'class': 'elementor-background-video-container', |
| 1446 | - 'aria-hidden': 'true', | |
| 1447 | 1446 | } |
| 1448 | 1447 | ); |
| 1449 | 1448 | |
| 1450 | 1449 | if ( ! settings.background_play_on_mobile ) { |
| @@ -1451,10 +1450,10 @@ | ||
| 1451 | 1450 | view.addRenderAttribute( 'background-video-container', 'class', 'elementor-hidden-mobile' ); |
| 1452 | 1451 | } |
| 1453 | 1452 | #> |
| 1454 | 1453 | <div {{{ view.getRenderAttributeString( 'background-video-container' ) }}}> |
| 1455 | - <div class="elementor-background-video-embed"></div> | |
| 1456 | - <video class="elementor-background-video-hosted" {{ videoAttributes }}></video> | |
| 1454 | + <div class="elementor-background-video-embed" role="presentation"></div> | |
| 1455 | + <video class="elementor-background-video-hosted" role="presentation" {{ videoAttributes }}></video> | |
| 1457 | 1456 | </div> |
| 1458 | 1457 | <# } #> |
| 1459 | 1458 | <div class="elementor-background-overlay"></div> |
| 1460 | 1459 | <div class="elementor-shape elementor-shape-top" aria-hidden="true"></div> |
| @@ -1486,9 +1485,8 @@ | ||
| 1486 | 1485 | $this->add_render_attribute( |
| 1487 | 1486 | 'background-video-container', |
| 1488 | 1487 | [ |
| 1489 | 1488 | 'class' => 'elementor-background-video-container', |
| 1490 | - 'aria-hidden' => 'true', | |
| 1491 | 1489 | ] |
| 1492 | 1490 | ); |
| 1493 | 1491 | |
| 1494 | 1492 | if ( ! $settings['background_play_on_mobile'] ) { |
| @@ -1496,9 +1494,9 @@ | ||
| 1496 | 1494 | } |
| 1497 | 1495 | ?> |
| 1498 | 1496 | <div <?php $this->print_render_attribute_string( 'background-video-container' ); ?>> |
| 1499 | 1497 | <?php if ( $video_properties ) : ?> |
| 1500 | - <div class="elementor-background-video-embed"></div> | |
| 1498 | + <div class="elementor-background-video-embed" role="presentation"></div> | |
| 1501 | 1499 | <?php |
| 1502 | 1500 | else : |
| 1503 | 1501 | $video_tag_attributes = 'autoplay muted playsinline'; |
| 1504 | 1502 | if ( 'yes' !== $settings['background_play_once'] ) : |
| @@ -1504,9 +1502,9 @@ | ||
| 1504 | 1502 | if ( 'yes' !== $settings['background_play_once'] ) : |
| 1505 | 1503 | $video_tag_attributes .= ' loop'; |
| 1506 | 1504 | endif; |
| 1507 | 1505 | ?> |
| 1508 | - <video class="elementor-background-video-hosted" <?php | |
| 1506 | + <video class="elementor-background-video-hosted" role="presentation" <?php | |
| 1509 | 1507 | // PHPCS - the variable $video_tag_attributes is a plain string. |
| 1510 | 1508 | echo $video_tag_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 1511 | 1509 | ?>></video> |
| 1512 | 1510 | <?php endif; ?> |