From 2eb914e8879fce6aba41aff19a51bdda8edad09f Mon Sep 17 00:00:00 2001 From: Elizabeth Mitchell Date: Fri, 14 Apr 2023 09:53:03 -0700 Subject: [PATCH] fix(icon): hide font ligature overflowing text PiperOrigin-RevId: 524316180 --- icon/lib/_icon.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/icon/lib/_icon.scss b/icon/lib/_icon.scss index 2f9621f8f3..832a2b5d0f 100644 --- a/icon/lib/_icon.scss +++ b/icon/lib/_icon.scss @@ -34,6 +34,8 @@ $_custom-property-prefix: 'icon'; font-size: var(--_size); font-variation-settings: var(--_font-variation-settings); line-height: 1; + // Avoid displaying overflowing text if font ligatures have not loaded. + overflow: hidden; letter-spacing: normal; text-transform: none; white-space: nowrap;