From bc4638de41b36dcb019ce8f3d05bc5283016ef93 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Thu, 25 May 2023 15:55:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F(react)=20add=20material-i?= =?UTF-8?q?cons=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The upgrade of @fontsource to v5 forces us to include the .material-icons class on our side. --- packages/react/src/icons.scss | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/packages/react/src/icons.scss b/packages/react/src/icons.scss index a8c7a27..62edb1d 100644 --- a/packages/react/src/icons.scss +++ b/packages/react/src/icons.scss @@ -1 +1,24 @@ @import "@fontsource/material-icons"; + +.material-icons { + font-family: 'Material Icons'; + font-weight: normal; + font-style: normal; + font-size: 24px; /* Preferred icon size */ + display: inline-block; + line-height: 1; + text-transform: none; + letter-spacing: normal; + word-wrap: normal; + white-space: nowrap; + direction: ltr; + + /* Support for all WebKit browsers. */ + -webkit-font-smoothing: antialiased; + /* Support for Safari and Chrome. */ + text-rendering: optimizeLegibility; + /* Support for Firefox. */ + -moz-osx-font-smoothing: grayscale; + /* Support for IE. */ + font-feature-settings: 'liga'; +}