Skip to content

Commit 328c694

Browse files
authored
fix(cdk/a11y): prevent crashing Chrome tabs with hidden text (#22536)
1 parent 6d42173 commit 328c694

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cdk/a11y/_index.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
position: absolute;
1010
width: 1px;
1111

12+
// This works around a Chrome bug that can cause the tab to crash when large amounts of
13+
// non-English text get wrapped: https://bugs.chromium.org/p/chromium/issues/detail?id=1201444
14+
white-space: nowrap;
15+
1216
// Avoid browsers rendering the focus ring in some cases.
1317
outline: 0;
1418

0 commit comments

Comments
 (0)