Skip to content

Commit

Permalink
fix(cdk/a11y): prevent crashing Chrome tabs with hidden text (#22536)
Browse files Browse the repository at this point in the history
(cherry picked from commit 328c694)
  • Loading branch information
mmalerba authored and wagnermaciel committed Apr 22, 2021
1 parent 6c00516 commit 9bb7b0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cdk/a11y/_a11y.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
position: absolute;
width: 1px;

// This works around a Chrome bug that can cause the tab to crash when large amounts of
// non-English text get wrapped: https://bugs.chromium.org/p/chromium/issues/detail?id=1201444
white-space: nowrap;

// Avoid browsers rendering the focus ring in some cases.
outline: 0;

Expand Down

0 comments on commit 9bb7b0c

Please sign in to comment.