Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/announce-slide.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ import React from 'react';
const AnnounceSlide = ({ message }) => {
const styles = {
position: 'absolute',
left: '-10000px',
top: 'auto',
width: '1px',
height: '1px',
overflow: 'hidden'
overflow: 'hidden',
padding: 0,
margin: '-1px',
clip: 'rect(0, 0, 0, 0)',
Copy link

@XavierMeunier XavierMeunier Sep 17, 2021

Choose a reason for hiding this comment

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

clip is going to be deprecated and clip-path seems to be the new way to go.

'white-space': 'nowrap',
border: 0,
};
return (
<div aria-live="polite" aria-atomic="true" style={styles} tabIndex={-1}>
Expand Down