Skip to content

Commit 73d8be4

Browse files
authored
Fix LiveAnnouncer styles cause page shift (#3807)
1 parent 9283b27 commit 73d8be4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@react-aria/live-announcer/src/LiveAnnouncer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ class LiveAnnouncer {
7070
border: 0,
7171
clip: 'rect(0 0 0 0)',
7272
clipPath: 'inset(50%)',
73-
height: 1,
73+
height: '1px',
7474
margin: '0 -1px -1px 0',
7575
overflow: 'hidden',
7676
padding: 0,
7777
position: 'absolute',
78-
width: 1,
78+
width: '1px',
7979
whiteSpace: 'nowrap'
8080
});
8181

0 commit comments

Comments
 (0)