From 30178319550ecbf318ecbfa36675c80b6e95e3ba Mon Sep 17 00:00:00 2001 From: Clay Miller Date: Tue, 24 Sep 2024 10:00:51 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20Don=E2=80=99t=20use=20deprecated=20CSS?= =?UTF-8?q?=20properties=20in=20`.sr-only`=20(#2710)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Don’t use deprecated CSS properties in '.sr-only' * chore: Add changeset --- .changeset/spotty-bottles-jam.md | 5 +++++ src/utilities/visibility-display.scss | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/spotty-bottles-jam.md diff --git a/.changeset/spotty-bottles-jam.md b/.changeset/spotty-bottles-jam.md new file mode 100644 index 0000000000..1bec4cbf26 --- /dev/null +++ b/.changeset/spotty-bottles-jam.md @@ -0,0 +1,5 @@ +--- +'@primer/css': patch +--- + +Replace deprecated CSS properties in '.sr-only' diff --git a/src/utilities/visibility-display.scss b/src/utilities/visibility-display.scss index b925331103..f0953a853c 100644 --- a/src/utilities/visibility-display.scss +++ b/src/utilities/visibility-display.scss @@ -99,9 +99,9 @@ height: 1px; padding: 0; overflow: hidden; - clip: rect(0, 0, 0, 0); + clip-path: rect(0 0 0 0); // Workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1241631 - word-wrap: normal; + overflow-wrap: normal; border: 0; }