Skip to content

Commit

Permalink
live-announcer incorrectly copies visually hidden styles
Browse files Browse the repository at this point in the history
Issue here: adobe#3791

Object.assign node.style does not accept 1 as a value for width and height; it requires '1px'
  • Loading branch information
mitchellwarr committed Nov 28, 2022
1 parent 810579b commit 87c96e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@react-aria/live-announcer/src/LiveAnnouncer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ class LiveAnnouncer {
border: 0,
clip: 'rect(0 0 0 0)',
clipPath: 'inset(50%)',
height: 1,
height: '1px',
margin: '0 -1px -1px 0',
overflow: 'hidden',
padding: 0,
position: 'absolute',
width: 1,
width: '1px',
whiteSpace: 'nowrap'
});

Expand Down

0 comments on commit 87c96e0

Please sign in to comment.